From: Richard Purdie Date: Tue, 21 Aug 2018 18:28:32 +0000 (+0000) Subject: oeqa/concurrencytest: Ensure subunit streams are flushed at exit X-Git-Tag: uninative-2.3~600 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=1e3f44737a15feb3128ba7fc0dbe896dd8782e07;p=openembedded-core.git 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 --- 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)