OSDN Git Service

qemu-iotests: flush after every test
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Oct 2021 09:24:22 +0000 (11:24 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Oct 2021 08:47:49 +0000 (10:47 +0200)
This makes it possible to see what is happening, even if the output of
"make check-block" is not sent to a tty (for example if it is sent to
grep or tee).

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/qemu-iotests/testrunner.py

index a56b6da..0e29c2f 100644 (file)
@@ -341,6 +341,7 @@ class TestRunner(ContextManager['TestRunner']):
             elif res.status == 'not run':
                 notrun.append(name)
 
+            sys.stdout.flush()
             if res.interrupted:
                 break