[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 58/67] iotests/246: Honor $IMGOPTS
From: |
Max Reitz |
Subject: |
[PATCH 58/67] iotests/246: Honor $IMGOPTS |
Date: |
Tue, 1 Oct 2019 21:47:06 +0200 |
Signed-off-by: Max Reitz <address@hidden>
---
tests/qemu-iotests/246 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/qemu-iotests/246 b/tests/qemu-iotests/246
index d1364d5901..2224c61545 100755
--- a/tests/qemu-iotests/246
+++ b/tests/qemu-iotests/246
@@ -20,7 +20,7 @@
# owner=address@hidden
import iotests
-from iotests import log
+from iotests import log, create_test_image
iotests.script_initialize(supported_fmts=['qcow2'],
# compat=1.1 is needed for dirty bitmaps
@@ -35,11 +35,11 @@ def query_bitmaps(vm):
return { "bitmaps": { device['device']: device.get('dirty-bitmaps', []) for
device in res['return'] } }
-with iotests.FilePath('img') as img_path, \
+with iotests.ImagePath('img') as img_path, \
iotests.VM() as vm:
log('--- Preparing image & VM ---\n')
- iotests.qemu_img_create('-f', iotests.imgfmt, img_path, str(size))
+ create_test_image(img_path, size)
vm.add_drive(img_path)
--
2.21.0
- [PATCH 49/67] iotests/222: Honor $IMGOPTS, (continued)
- [PATCH 49/67] iotests/222: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 50/67] iotests/224: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 51/67] iotests/228: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 52/67] iotests/234: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 53/67] iotests/235: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 54/67] iotests/236: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 55/67] iotests/237: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 56/67] iotests/242: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 57/67] iotests/245: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 59/67] iotests/248: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 58/67] iotests/246: Honor $IMGOPTS,
Max Reitz <=
- [PATCH 60/67] iotests/254: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 61/67] iotests/255: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 62/67] iotests/256: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 65/67] iotests/262: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 63/67] iotests/257: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 64/67] iotests/258: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 66/67] iotests.py: Forbid qemu_img*('create', ...), Max Reitz, 2019/10/01
- [PATCH 67/67] iotests.py: Drop qemu_img_log(), qemu_img_create(), Max Reitz, 2019/10/01
- Re: [PATCH 00/67] iotests: Honor $IMGOPTS in Python tests, John Snow, 2019/10/01