]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/concurrencytest: Ensure subunit streams are flushed at exit
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Aug 2018 18:28:32 +0000 (18:28 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Aug 2018 06:32:53 +0000 (07:32 +0100)
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>
meta/lib/oeqa/core/utils/concurrencytest.py

index 850586516a4c5cbd0210c470b17c65d6a8b550b0..6404cb4668ce7d13eb5782376d78d41a4cf80cda 100644 (file)
@@ -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)