iotests: 122 needs at least two refcount bits now
PATCH 1/1 iotests: 122 needs at least two refcount bits now
The new test case for compressed clusters (added in commit abd3622cc03cf41ed542126a540385f30a4c0175) requires two refcount bits to succeed, so we need to skip the test when refcount_bits=1 was requested.
--- tests/qemu-iotests/122 | 4 ++++ 1 file changed, 4 insertions(+)
tests/qemu-iotests/122 +4 -0
@@ -42,6 +42,10 @@ _supported_fmt qcow2 _supported_proto file _supported_os Linux +# Repairing the compressed image requires qemu-img check to store a +# refcount up to 3, which requires at least two refcount bits. +_unsupported_imgopts 'refcount_bits=1[^0-9]' + TEST_IMG="$TEST_IMG".base _make_test_img 64M $QEMU_IO -c "write -P 0x11 0 64M" "$TEST_IMG".base 2>&1 | _filter_qemu_io | _filter_testdir
Signature · 1 line
2.14.3
Quoted 3 lines · Max Reitz
The new test case for compressed clusters (added in commit
abd3622cc03cf41ed542126a540385f30a4c0175) requires two refcount bits to succeed, so we need to skip the test when refcount_bits=1 was requested.
We already questioned whether the changes to 122 were appropriate, given that it didn't even use qemu-img convert. Should we instead split this into two tests (keeping 122 as it was before, and making the new compressed refcount munging tests be separate), where only the new test needs this filter?
Quoted 11 lines
Signed-off-by Max Reitz <[email protected]>--- tests/qemu-iotests/122 | 4 ++++ 1 file changed, 4 insertions(+)tests/qemu-iotests/122 +0
-0
tests/qemu-iotests/122 _supported_fmt qcow2 · line 48
Quoted 7 lines
tests/qemu-iotests/122 +4
-0@@ -42,6 +42,10 @@ _supported_fmt qcow2 _supported_proto file _supported_os Linux +# Repairing the compressed image requires qemu-img check to store a +# refcount up to 3, which requires at least two refcount bits. +_unsupported_imgopts 'refcount_bits=1[^0-9]' +
This makes sense, but I'm withholding R-b until we decide if splitting the tests is wiser.
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Quoted 10 lines · Eric Blake
Quoted 3 lines · Max Reitz
The new test case for compressed clusters (added in commit
abd3622cc03cf41ed542126a540385f30a4c0175) requires two refcount bits to succeed, so we need to skip the test when refcount_bits=1 was requested.We already questioned whether the changes to 122 were appropriate, given that it didn't even use qemu-img convert. Should we instead split this into two tests (keeping 122 as it was before, and making the new compressed refcount munging tests be separate), where only the new test needs this filter?
Can do, why not.
Max
Quoted 21 lines
Quoted 10 lines
Signed-off-by Max Reitz <[email protected]>--- tests/qemu-iotests/122 | 4 ++++ 1 file changed, 4 insertions(+)tests/qemu-iotests/122 +0
-0tests/qemu-iotests/122 _supported_fmt qcow2 · line 48
Quoted 7 lines
tests/qemu-iotests/122 +4
-0@@ -42,6 +42,10 @@ _supported_fmt qcow2 _supported_proto file _supported_os Linux +# Repairing the compressed image requires qemu-img check to store a +# refcount up to 3, which requires at least two refcount bits. +_unsupported_imgopts 'refcount_bits=1[^0-9]' +This makes sense, but I'm withholding R-b until we decide if splitting the tests is wiser.