Commit 3f5c4076 authored by Daniel P. Berrangé's avatar Daniel P. Berrangé Committed by Eric Blake
Browse files

iotests: blacklist 194 with the luks driver



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: default avatarDaniel P. Berrange <berrange@redhat.com>
Message-Id: <20170901105434.3288-3-berrange@redhat.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Tested-by: default avatarFam Zheng <famz@redhat.com>
[eblake: commit message typo fixed]
Reviewed-by: default avatarKashyap Chamarthy <kchamart@redhat.com>
Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: default avatarEric Blake <eblake@redhat.com>
parent 0127b79e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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, \
+3 −1
Original line number Diff line number Diff line
@@ -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]: