]> code.ossystems Code Review - openembedded-core.git/commit
eSDK.py: avoid error in tearDownClass due to race condistion
authorChen Qi <Qi.Chen@windriver.com>
Thu, 24 Jan 2019 09:33:01 +0000 (17:33 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 28 Jan 2019 16:56:34 +0000 (16:56 +0000)
commit6a5cce862f1e950439dc8ee1d84a10397a7fac4f
tree0e04ab16cc1192a6fae422374f95c84667dc0fc6
parent5e4d9fd5b13dd0603d9001b478b0c3170dd81004
eSDK.py: avoid error in tearDownClass due to race condistion

When removing the temporary directory, it's possible that bitbake.lock
file is removed by bitbake during the cleanup. And this leads to the
following error.

  FileNotFoundError: [Errno 2] No such file or directory: 'bitbake.lock'

So add a check to remove this file before cleaning up the temporary
directory.

(From OE-Core rev: 984f56b37bd0014e5bf9509fc8ed181973e61773)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/lib/oeqa/selftest/cases/eSDK.py