iotests/245: Check if 'compress' driver is available
commit78935fcd88ec2d26d50e45043b262f0326e6d410
authorKevin Wolf <kwolf@redhat.com>
Thu, 11 May 2023 14:38:01 +0000 (11 16:38 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 19 May 2023 17:12:12 +0000 (19 19:12 +0200)
tree0b6c7afe05fba4f22172b2a4e7b7f5e646a95b0e
parent71438d8dac07f28c01cf6d90fce14efe04c77824
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>
tests/qemu-iotests/245
tests/qemu-iotests/245.out