[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 62/67] iotests/256: Honor $IMGOPTS
From: |
Max Reitz |
Subject: |
[PATCH 62/67] iotests/256: Honor $IMGOPTS |
Date: |
Tue, 1 Oct 2019 21:47:10 +0200 |
Signed-off-by: Max Reitz <address@hidden>
---
tests/qemu-iotests/256 | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/qemu-iotests/256 b/tests/qemu-iotests/256
index d2f9212e5a..7c78a123ad 100755
--- a/tests/qemu-iotests/256
+++ b/tests/qemu-iotests/256
@@ -21,13 +21,13 @@
import os
import iotests
-from iotests import log
+from iotests import log, create_test_image
iotests.script_initialize(supported_fmts=['qcow2'])
size = 64 * 1024 * 1024
-with iotests.FilePath('img0') as img0_path, \
- iotests.FilePath('img1') as img1_path, \
+with iotests.ImagePath('img0') as img0_path, \
+ iotests.ImagePath('img1') as img1_path, \
iotests.FilePath('img0-full') as img0_full_path, \
iotests.FilePath('img1-full') as img1_full_path, \
iotests.FilePath('img0-incr') as img0_incr_path, \
@@ -62,8 +62,8 @@ with iotests.FilePath('img0') as img0_path, \
vm.add_object('iothread,id=iothread1')
vm.add_device('virtio-scsi-pci,id=scsi0,iothread=iothread0')
vm.add_device('virtio-scsi-pci,id=scsi1,iothread=iothread1')
- iotests.qemu_img_create('-f', iotests.imgfmt, img0_path, str(size))
- iotests.qemu_img_create('-f', iotests.imgfmt, img1_path, str(size))
+ create_test_image(img0_path, size)
+ create_test_image(img1_path, size)
vm.add_drive(img0_path, interface='none')
vm.add_device('scsi-hd,id=device0,drive=drive0,bus=scsi0.0')
vm.add_drive(img1_path, interface='none')
--
2.21.0
- [PATCH 52/67] iotests/234: Honor $IMGOPTS, (continued)
- [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, 2019/10/01
- [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 <=
- [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