iotests.py: improve verify_image_format helper
commitf48351d2f3dd94aa499f4197ae37a059559506bf
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Mon, 9 Apr 2018 11:44:17 +0000 (9 14:44 +0300)
committerKevin Wolf <kwolf@redhat.com>
Tue, 10 Apr 2018 14:33:08 +0000 (10 16:33 +0200)
tree4e9547ba1967319375dcfd9530937552f21b556e
parent07c13a71721d9f8c690b66752964e254af247475
iotests.py: improve verify_image_format helper

Support "generic" formats like in bash tests with their
   _supported_fmt generic
The test, supporting "generic" formats will run if IMGFMT_GENERIC =
true, which is default, except for bochs and cloop. However, you can
use verify_image_format(['generic', 'bochs']), which will run for all
except cloop (for this moment).

Also, add an assert (we don't want set both arguments) and remove
duplication.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/iotests.py