]> git.proxmox.com Git - mirror_qemu.git/commitdiff
iotests: blacklist 194 with the luks driver
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 1 Sep 2017 10:54:34 +0000 (11:54 +0100)
committerEric Blake <eblake@redhat.com>
Tue, 5 Sep 2017 19:17:26 +0000 (14:17 -0500)
The 194 test has a lot of code that assumes a simple image file. Rewriting
this to work with luks is possible, but non-trivial, so blacklist the
luks format for now.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <20170901105434.3288-3-berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Tested-by: Fam Zheng <famz@redhat.com>
[eblake: commit message typo fixed]
Reviewed-by: Kashyap Chamarthy <kchamart@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
tests/qemu-iotests/194
tests/qemu-iotests/iotests.py

index 6449b9b64a058307a0a6e293a047d734fd2d1740..8d973b440f20d436e2933f5e226a9c06b364dd64 100755 (executable)
@@ -21,6 +21,7 @@
 
 import iotests
 
+iotests.verify_image_format(unsupported_fmts=['luks'])
 iotests.verify_platform(['linux'])
 
 with iotests.FilePath('source.img') as source_img_path, \
index 07fa1626a0ea309a11352fda582f915b5df91e02..1af117e37dbff77b9e2cdae5367f21b9daf923c4 100644 (file)
@@ -421,9 +421,11 @@ def notrun(reason):
     print '%s not run: %s' % (seq, reason)
     sys.exit(0)
 
-def verify_image_format(supported_fmts=[]):
+def verify_image_format(supported_fmts=[], unsupported_fmts=[]):
     if supported_fmts and (imgfmt not in supported_fmts):
         notrun('not suitable for this image format: %s' % imgfmt)
+    if unsupported_fmts and (imgfmt in unsupported_fmts):
+        notrun('not suitable for this image format: %s' % imgfmt)
 
 def verify_platform(supported_oses=['linux']):
     if True not in [sys.platform.startswith(x) for x in supported_oses]: