iotests.py: support unsupported_fmts in main()
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 30 Mar 2018 15:16:35 +0000 (18:16 +0300)
committerKevin Wolf <kwolf@redhat.com>
Tue, 10 Apr 2018 14:33:08 +0000 (16:33 +0200)
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/iotests.py

index b5d7945af882a0e96ba428118990222ad465f956..1623257e32fbd9d3e15cb5ef76a59068ee541593 100644 (file)
@@ -553,7 +553,8 @@ def verify_quorum():
     if not supports_quorum():
         notrun('quorum support missing')
 
-def main(supported_fmts=[], supported_oses=['linux'], supported_cache_modes=[]):
+def main(supported_fmts=[], supported_oses=['linux'], supported_cache_modes=[],
+         unsupported_fmts=[]):
     '''Run tests'''
 
     global debug
@@ -568,7 +569,7 @@ def main(supported_fmts=[], supported_oses=['linux'], supported_cache_modes=[]):
 
     debug = '-d' in sys.argv
     verbosity = 1
-    verify_image_format(supported_fmts)
+    verify_image_format(supported_fmts, unsupported_fmts)
     verify_platform(supported_oses)
     verify_cache_mode(supported_cache_modes)