diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-15 14:35:41 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-16 11:46:07 +0000 |
commit | 8cee6d31bbc7ae2341074471cd36b87bb3748cfe (patch) | |
tree | 95e47156ff35ebdfcb14a7c00c98c88bdac02ac4 /meta | |
parent | dbe49d0ad197975e80c937e5e8da038d5c19e4c1 (diff) | |
download | poky-8cee6d31bbc7ae2341074471cd36b87bb3748cfe.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)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/core/utils/concurrencytest.py | 3 |
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: |