summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-15 14:35:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-16 14:31:33 +0000
commitea1ffae258574598b9204ef9b2b6b375dcc0d079 (patch)
tree1206ec2418ea0ccf8ed5c455fb53d8197ebe99eb /meta
parent19287294c162f1ca0f73616d9e67f5157c528f5f (diff)
downloadpoky-ea1ffae258574598b9204ef9b2b6b375dcc0d079.tar.gz
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) (From OE-Core rev: a7dceca55b169bcdb8d1528238cbdedfd131f37f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/core/utils/concurrencytest.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/utils/concurrencytest.py b/meta/lib/oeqa/core/utils/concurrencytest.py
index 6404cb4668..f050289e61 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):
115 for thread, process_result in threads.values(): 115 for thread, process_result in threads.values():
116 process_result.stop() 116 process_result.stop()
117 raise 117 raise
118 finally:
119 for test in tests:
120 test[0]._stream.close()
118 121
119 def _run_test(self, test, process_result, queue): 122 def _run_test(self, test, process_result, queue):
120 try: 123 try: