OSDN Git Service

qemu-iotests: add option to show qemu binary logs on stdout
authorEmanuele Giuseppe Esposito <eesposit@redhat.com>
Mon, 9 Aug 2021 09:01:13 +0000 (11:01 +0200)
committerHanna Reitz <hreitz@redhat.com>
Wed, 1 Sep 2021 10:57:31 +0000 (12:57 +0200)
commiteb7a91d07ad831aeb372ff21b10e7a515ca786ec
treeb34f487e9ea28774079d67292dbccb2540fd171e
parentbd10a7397ed93be4ea97b1e377578d13922134f5
qemu-iotests: add option to show qemu binary logs on stdout

Using the flag -p, allow the qemu binary to print to stdout.

Also create the common function _close_qemu_log_file() to
avoid accessing machine.py private fields directly and have
duplicate code.

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20210809090114.64834-16-eesposit@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
python/qemu/machine/machine.py
tests/qemu-iotests/check
tests/qemu-iotests/iotests.py
tests/qemu-iotests/testenv.py