Skip to content

Commit

Permalink
iotests: Add supported protocols to execute_test()
Browse files Browse the repository at this point in the history
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 88d2aa5)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
  • Loading branch information
XanClic authored and mdroth committed Oct 28, 2019
1 parent 4d9bdd3 commit 819ba23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/qemu-iotests/iotests.py
Expand Up @@ -855,7 +855,8 @@ def execute_unittest(output, verbosity, debug):

def execute_test(test_function=None,
supported_fmts=[], supported_oses=['linux'],
supported_cache_modes=[], unsupported_fmts=[]):
supported_cache_modes=[], unsupported_fmts=[],
supported_protocols=[], unsupported_protocols=[]):
"""Run either unittest or script-style tests."""

# We are using TEST_DIR and QEMU_DEFAULT_MACHINE as proxies to
Expand All @@ -869,6 +870,7 @@ def execute_test(test_function=None,
debug = '-d' in sys.argv
verbosity = 1
verify_image_format(supported_fmts, unsupported_fmts)
verify_protocol(supported_protocols, unsupported_protocols)
verify_platform(supported_oses)
verify_cache_mode(supported_cache_modes)

Expand Down

0 comments on commit 819ba23

Please sign in to comment.