]> git.ipfire.org Git - thirdparty/qemu.git/commit
iotests: Use case_skip() in skip_if_unsupported()
authorMax Reitz <mreitz@redhat.com>
Tue, 17 Sep 2019 09:20:00 +0000 (11:20 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 28 Oct 2019 10:22:30 +0000 (11:22 +0100)
commite6067a950c44809bbeeb340b2595a5ab844635fd
treecec1ecde4bb313386455a25014d9f39cf332f52f
parent6be012252018249d3a2843a0143ee8cca41c276d
iotests: Use case_skip() in skip_if_unsupported()

skip_if_unsupported() should use the stronger variant case_skip(),
because this allows it to be used even with setUp() (in a meaningful
way).

In the process, make it explicit what we expect the first argument of
the func_wrapper to be (namely something derived of QMPTestCase).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190917092004.999-4-mreitz@redhat.com
Reviewed-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/iotests.py