qemu-iotests: do not buffer the test output
commitf29f4c25eb9f11d78d62185b69456681f9c703b2
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 May 2021 11:01:06 +0000 (3 13:01 +0200)
committerMax Reitz <mreitz@redhat.com>
Fri, 14 May 2021 14:14:10 +0000 (14 16:14 +0200)
treed8a3b79185db58dc3fe695daccdde679c97fc49d
parent9c785cd714b3c368503ba3aed4266a77056cae29
qemu-iotests: do not buffer the test output

Instead of buffering the test output into a StringIO, patch it on
the fly by wrapping sys.stdout's write method.  This can be
done unconditionally, even if using -d, which makes execute_unittest
a bit simpler.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tested-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Message-Id: <20210323181928.311862-2-pbonzini@redhat.com>
Message-Id: <20210503110110.476887-2-pbonzini@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/240.out
tests/qemu-iotests/245.out
tests/qemu-iotests/295.out
tests/qemu-iotests/296.out
tests/qemu-iotests/iotests.py