Skip to contentSkip to conversation

iotests: 222: Don't run with luks

PATCH Applied Fam Zheng 3 participants 4 messages Jul 10, 2018

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 iotests: 222: Don't run with luks

Luks needs special parameters to operate the image. Since this test is focusing on image fleecing, skip skip that format.

---
 tests/qemu-iotests/222 | 2 ++
 1 file changed, 2 insertions(+)
tests/qemu-iotests/222 +2 -0
index ff3bfc1470..0ead56d574 100644
@@ -25,6 +25,8 @@ import iotests
 from iotests import log, qemu_img, qemu_io, qemu_io_silent
 
 iotests.verify_platform(['linux'])
+iotests.verify_image_format(supported_fmts=['qcow2', 'qcow', 'qed', 'vmdk',
+                                            'vhdx', 'raw'])
 
 patterns = [("0x5d", "0",         "64k"),
             ("0xd5", "1M",        "64k"),
Signature · 1 line
2.17.1
Applied
#1 lore raw

Am 10.07.2018 um 11:38 hat Fam Zheng geschrieben:

Quoted 4 lines

Luks needs special parameters to operate the image. Since this test is focusing on image fleecing, skip skip that format.

Thanks, applied to the block branch.

Kevin

#2 lore raw
In reply to Fam Zheng
Quoted 14 lines · Fam Zheng

Luks needs special parameters to operate the image. Since this test is focusing on image fleecing, skip skip that format.

---
 tests/qemu-iotests/222 | 2 ++
 1 file changed, 2 insertions(+)
tests/qemu-iotests/222 +0 -0
index ff3bfc1470..0ead56d574 100644

tests/qemu-iotests/222 import iotests · line 32

Quoted 8 lines
tests/qemu-iotests/222 +2 -0
@@ -25,6 +25,8 @@ import iotests
 from iotests import log, qemu_img, qemu_io, qemu_io_silent
 
 iotests.verify_platform(['linux'])
+iotests.verify_image_format(supported_fmts=['qcow2', 'qcow', 'qed', 'vmdk',
+                                            'vhdx', 'raw'])
 
 patterns = [("0x5d", "0",         "64k"),
             ("0xd5", "1M",        "64k"),

Ah; do we not have a nicer way to exclude just one format? Evidently not.

Apologies for breaking LUKS.

--js

#3 lore raw

Am 10.07.2018 um 17:34 hat John Snow geschrieben:

Quoted 22 lines · Fam Zheng
Quoted 19 lines

Luks needs special parameters to operate the image. Since this test is focusing on image fleecing, skip skip that format.

---
 tests/qemu-iotests/222 | 2 ++
 1 file changed, 2 insertions(+)
tests/qemu-iotests/222 +2 -0
index ff3bfc1470..0ead56d574 100644
@@ -25,6 +25,8 @@ import iotests
 from iotests import log, qemu_img, qemu_io, qemu_io_silent
 
 iotests.verify_platform(['linux'])
+iotests.verify_image_format(supported_fmts=['qcow2', 'qcow', 'qed', 'vmdk',
+                                            'vhdx', 'raw'])
 
Quoted 5 lines

tests/qemu-iotests/222 import iotests · line 32

Quoted 3 lines
tests/qemu-iotests/222 +0 -0
 patterns = [("0x5d", "0",         "64k"),
             ("0xd5", "1M",        "64k"),

Ah; do we not have a nicer way to exclude just one format? Evidently not.

iotest.verify_image_format() has an argument unsupported_fmts, but I think a whitelist is better anyway.

Kevin