iotests/303: Check for zstd support
303 runs two test cases, one of which requires zstd support.
Unfortunately, given that this is not a unittest-style test, we cannot
easily skip that single case, and instead can only skip the whole test.
(Alternatively, we could split this test into a zlib and a zstd part,
but that seems excessive, given that this test is not in auto and thus
likely only run by developers who have zstd support compiled in.)
Fixes: 677e0bae68
("iotest 303: explicit compression type")
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <v.sementsov-og@mail.ru>
Message-Id: <20220323105522.53660-4-hreitz@redhat.com>
This commit is contained in:
parent
7253a57007
commit
32911369fe
@ -21,10 +21,12 @@
|
|||||||
|
|
||||||
import iotests
|
import iotests
|
||||||
import subprocess
|
import subprocess
|
||||||
from iotests import qemu_img_create, qemu_io, file_path, log, filter_qemu_io
|
from iotests import qemu_img_create, qemu_io, file_path, log, filter_qemu_io, \
|
||||||
|
verify_qcow2_zstd_compression
|
||||||
|
|
||||||
iotests.script_initialize(supported_fmts=['qcow2'],
|
iotests.script_initialize(supported_fmts=['qcow2'],
|
||||||
unsupported_imgopts=['refcount_bits', 'compat'])
|
unsupported_imgopts=['refcount_bits', 'compat'])
|
||||||
|
verify_qcow2_zstd_compression()
|
||||||
|
|
||||||
disk = file_path('disk')
|
disk = file_path('disk')
|
||||||
chunk = 1024 * 1024
|
chunk = 1024 * 1024
|
||||||
|
Loading…
Reference in New Issue
Block a user