summaryrefslogtreecommitdiffstats
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:32:53 +0100
commit1e3f44737a15feb3128ba7fc0dbe896dd8782e07 (patch)
tree2d0a5781690603a6318b97d6204a6f4b22a277fb
parentd2a929d932900f753af1a06a8cb98d953369e3b4 (diff)
downloadopenembedded-core-contrib-1e3f44737a15feb3128ba7fc0dbe896dd8782e07.tar.gz
openembedded-core-contrib-1e3f44737a15feb3128ba7fc0dbe896dd8782e07.tar.bz2
openembedded-core-contrib-1e3f44737a15feb3128ba7fc0dbe896dd8782e07.zip
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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):
finally:
if newbuilddir:
removebuilddir(newbuilddir)
+ stream.flush()
os._exit(1)
+ stream.flush()
os._exit(0)
else:
os.close(c2pwrite)