qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 42/67] iotests/203: Honor $IMGOPTS


From: Max Reitz
Subject: [PATCH 42/67] iotests/203: Honor $IMGOPTS
Date: Tue, 1 Oct 2019 21:46:50 +0200

Signed-off-by: Max Reitz <address@hidden>
---
 tests/qemu-iotests/203 | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/qemu-iotests/203 b/tests/qemu-iotests/203
index c40fe231ea..ce4bc05e08 100755
--- a/tests/qemu-iotests/203
+++ b/tests/qemu-iotests/203
@@ -23,16 +23,17 @@
 # BDRV_POLL_WHILE().
 
 import iotests
+from iotests import create_test_image
 
 iotests.script_initialize(supported_fmts=['qcow2'])
 
-with iotests.FilePath('disk0.img') as disk0_img_path, \
-     iotests.FilePath('disk1.img') as disk1_img_path, \
+with iotests.ImagePath('disk0.img') as disk0_img_path, \
+     iotests.ImagePath('disk1.img') as disk1_img_path, \
      iotests.VM() as vm:
 
     img_size = '10M'
-    iotests.qemu_img_pipe('create', '-f', iotests.imgfmt, disk0_img_path, 
img_size)
-    iotests.qemu_img_pipe('create', '-f', iotests.imgfmt, disk1_img_path, 
img_size)
+    create_test_image(disk0_img_path, img_size)
+    create_test_image(disk1_img_path, img_size)
 
     iotests.log('Launching VM...')
     (vm.add_object('iothread,id=iothread0')
-- 
2.21.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]