summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-21 18:28:32 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-23 07:50:00 +0100
commitc2e589ee0d0a40e4d79c0c7afa8a52693e0b39d7 (patch)
treea27a8c7e8e3de4a38917c2a08435facc865af42d /meta/lib
parent491082c56ce34f3fd644f8d4457ccd52af951087 (diff)
downloadpoky-c2e589ee0d0a40e4d79c0c7afa8a52693e0b39d7.tar.gz
oeqa/concurrencytest: Ensure subunit streams are flushed at exit
Without this, error output such as that in the teardown can be lost and processes may recieve signals they're not expecting causing other strange errors. (From OE-Core rev: 1e3f44737a15feb3128ba7fc0dbe896dd8782e07) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/core/utils/concurrencytest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/utils/concurrencytest.py b/meta/lib/oeqa/core/utils/concurrencytest.py
index 850586516a..6404cb4668 100644
--- a/meta/lib/oeqa/core/utils/concurrencytest.py
+++ b/meta/lib/oeqa/core/utils/concurrencytest.py
@@ -225,7 +225,9 @@ def fork_for_tests(concurrency_num, suite):
225 finally: 225 finally:
226 if newbuilddir: 226 if newbuilddir:
227 removebuilddir(newbuilddir) 227 removebuilddir(newbuilddir)
228 stream.flush()
228 os._exit(1) 229 os._exit(1)
230 stream.flush()
229 os._exit(0) 231 os._exit(0)
230 else: 232 else:
231 os.close(c2pwrite) 233 os.close(c2pwrite)