iotests: Let skip_if_unsupported accept a function
commit7448be831a6b3a3a7f91d873a52bb2d1ce0bd3d9
authorMax Reitz <mreitz@redhat.com>
Tue, 17 Sep 2019 09:20:01 +0000 (17 11:20 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 28 Oct 2019 10:22:30 +0000 (28 11:22 +0100)
tree937efaac019f7aa7d853b9061c719f1723f44bce
parente6067a950c44809bbeeb340b2595a5ab844635fd
iotests: Let skip_if_unsupported accept a function

This lets tests use skip_if_unsupported() with a potentially variable
list of required formats.

Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190917092004.999-5-mreitz@redhat.com
Reviewed-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/iotests.py