Less typing: let's use imgfmt by default if user doesn't specify neither -f nor --image-opts.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsement...@openvz.org> --- 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 fcec3e51e5..c7a38a95a4 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -266,6 +266,8 @@ def ordered_qmp(qmsg, conv_keys=True): return qmsg def qemu_img_create(*args: str) -> 'subprocess.CompletedProcess[str]': + if '-f' not in args and '--image-opts' not in args: + args = ['-f', imgfmt] + list(args) return qemu_img('create', *args) def qemu_img_json(*args: str) -> Any: -- 2.35.1