]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/eSDK: Ignore errors during directory cleanup
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Jul 2017 08:38:36 +0000 (09:38 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Jul 2017 07:44:19 +0000 (08:44 +0100)
The cleanup can fail with:

ERROR [0.000s]: tearDownClass (eSDK.oeSDKExtSelfTest)
FileNotFoundError: [Errno 2] No such file or directory: 'bitbake.sock'

which is due to bitbake taking a small amount of time to shut down the server.
The easiest fix is just to ignore these kinds of errors, bitbake shouldn't create
any new files during shutdown.

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

index f36c3ccd3b4931627070e8495b8a54f676a70a51..d03188f2f7566716da88a4b08450beeaf497c396 100644 (file)
@@ -93,7 +93,7 @@ SSTATE_MIRRORS =  "file://.* file://%s/PATH"
 
     @classmethod
     def tearDownClass(cls):
-        shutil.rmtree(cls.tmpdir_eSDKQA)
+        shutil.rmtree(cls.tmpdir_eSDKQA, ignore_errors=True)
         super(oeSDKExtSelfTest, cls).tearDownClass()
 
     @OETestID(1602)