]> 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>
Thu, 24 Jan 2019 17:45:18 +0000 (17:45 +0000)
commit984f56b37bd0014e5bf9509fc8ed181973e61773
tree2c13257fea1e7bc7e13249515f72fdc367ec1f5e
parent6452ccd1f0a2b114fca70d587cb8ed26b189baf3
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.

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