summary refs log tree commit diff stats
path: root/python
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2023-05-11 16:38:01 +0200
committerKevin Wolf <kwolf@redhat.com>2023-05-19 19:12:12 +0200
commit78935fcd88ec2d26d50e45043b262f0326e6d410 (patch)
tree0b6c7afe05fba4f22172b2a4e7b7f5e646a95b0e /python
parent71438d8dac07f28c01cf6d90fce14efe04c77824 (diff)
downloadfocaccia-qemu-78935fcd88ec2d26d50e45043b262f0326e6d410.tar.gz
focaccia-qemu-78935fcd88ec2d26d50e45043b262f0326e6d410.zip
iotests/245: Check if 'compress' driver is available
Skip TestBlockdevReopen.test_insert_compress_filter() if the 'compress'
driver isn't available.

In order to make the test succeed when the case is skipped, we also need
to remove any output from it (which would be missing in the case where
we skip it). This is done by replacing qemu_io_log() with qemu_io(). In
case of failure, qemu_io() raises an exception with the output of the
qemu-io binary in its message, so we don't actually lose anything.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20230511143801.255021-1-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions