mtest: flush stdout after printing test results

Flush after each output line, even if printing to a file, so that each
result is immediately visible down a pipeline.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
pull/8001/head
Paolo Bonzini 4 years ago
parent 4cfd1e638c
commit 80ba696066
  1. 2
      mesonbuild/mtest.py

@ -480,7 +480,7 @@ class ConsoleLogger(TestLogger):
self.running_tests.remove(result)
if not harness.options.quiet or not result.res.is_ok():
self.clear_progress()
print(harness.format(result, mlog.colorize_console()))
print(harness.format(result, mlog.colorize_console()), flush=True)
self.request_update()
async def finish(self, harness: 'TestHarness') -> None:

Loading…
Cancel
Save