[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 08/11] iotests.py: qemu_img_create: use imgfmt by default
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH v3 08/11] iotests.py: qemu_img_create: use imgfmt by default |
Date: |
Sat, 26 Feb 2022 00:43:05 +0100 |
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@virtuozzo.com>
---
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
- [PATCH v3 00/11] blockdev-replace, Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 01/11] block-backend: blk_root(): drop const specifier on return type, Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 02/11] block/export: add blk_by_export_id(), Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 03/11] block: make bdrv_find_child() function public, Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 04/11] block: bdrv_replace_child_bs(): move to external transaction, Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 06/11] qapi: add x-blockdev-replace transaction action, Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 05/11] qapi: add x-blockdev-replace command, Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 07/11] block: bdrv_get_xdbg_block_graph(): report export ids, Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 08/11] iotests.py: qemu_img_create: use imgfmt by default,
Vladimir Sementsov-Ogievskiy <=
- [PATCH v3 09/11] iotests.py: introduce VM.assert_edges_list() method, Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 10/11] iotests.py: add VM.qmp_check() helper, Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 11/11] iotests: add filter-insertion, Vladimir Sementsov-Ogievskiy, 2022/02/25
- Re: [PATCH v3 00/11] blockdev-replace, Vladimir Sementsov-Ogievskiy, 2022/02/25