mirror of
https://git.yoctoproject.org/poky
synced 2026-10-15 17:07:16 +00:00
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>
This commit is contained in:
1 parent
19287294c1
commit
ea1ffae258
1 file changed
+3
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user