[oe-commits] [openembedded-core] 29/30: oeqa/concurrencytest: Avoid unclosed file warnings

git at git.openembedded.org git at git.openembedded.org
Thu Dec 6 10:52:33 UTC 2018


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

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

commit a7dceca55b169bcdb8d1528238cbdedfd131f37f
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu Nov 15 14:35:41 2018 +0000

    oeqa/concurrencytest: Avoid unclosed file warnings
    
    Avoid an unclosed file per thread warning when running selftests concurrently
    by closing the result stream.
    
    (From OE-Core rev: 33a4a076e8aa72a872807332501e7f5ae1cee0e2)
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oeqa/core/utils/concurrencytest.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/lib/oeqa/core/utils/concurrencytest.py b/meta/lib/oeqa/core/utils/concurrencytest.py
index 6404cb4..f050289 100644
--- a/meta/lib/oeqa/core/utils/concurrencytest.py
+++ b/meta/lib/oeqa/core/utils/concurrencytest.py
@@ -115,6 +115,9 @@ class ConcurrentTestSuite(unittest.TestSuite):
             for thread, process_result in threads.values():
                 process_result.stop()
             raise
+        finally:
+            for test in tests:
+                test[0]._stream.close()
 
     def _run_test(self, test, process_result, queue):
         try:

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


More information about the Openembedded-commits mailing list