Less typing: let's use imgfmt by default if user doesn't specify neither -f nor --image-opts. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@xxxxxxxxxxxxx> --- tests/qemu-iotests/iotests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index 6ba65eb1ff..ca17a5c64c 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -233,6 +233,8 @@ def ordered_qmp(qmsg, conv_keys=True): return qmsg def qemu_img_create(*args): + if '-f' not in args and '--image-opts' not in args: + args = ['-f', imgfmt] + list(args) return qemu_img('create', *args) def qemu_img_measure(*args): -- 2.31.1