[oe-commits] [openembedded-core] 11/39: oeqa/eSDK: Ignore errors during directory cleanup

git at git.openembedded.org git at git.openembedded.org
Thu Jul 20 16:29:55 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 18f384fb38670bc290d9340972cf0d73637360a0
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu Jul 20 09:38:36 2017 +0100

    oeqa/eSDK: Ignore errors during directory cleanup
    
    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 at linuxfoundation.org>
---
 meta/lib/oeqa/selftest/cases/eSDK.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/selftest/cases/eSDK.py b/meta/lib/oeqa/selftest/cases/eSDK.py
index f36c3cc..d03188f 100644
--- a/meta/lib/oeqa/selftest/cases/eSDK.py
+++ b/meta/lib/oeqa/selftest/cases/eSDK.py
@@ -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)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list