qemu-block
[Top][All Lists]
Advanced

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

[PATCH 65/67] iotests/262: Honor $IMGOPTS


From: Max Reitz
Subject: [PATCH 65/67] iotests/262: Honor $IMGOPTS
Date: Tue, 1 Oct 2019 21:47:13 +0200

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

diff --git a/tests/qemu-iotests/262 b/tests/qemu-iotests/262
index 6879665f99..b436fb3e14 100755
--- a/tests/qemu-iotests/262
+++ b/tests/qemu-iotests/262
@@ -21,11 +21,12 @@
 # iothread just for fun.
 
 import iotests
+from iotests import create_test_image
 import os
 
 iotests.script_initialize(supported_fmts=['qcow2'])
 
-with iotests.FilePath('img') as img_path, \
+with iotests.ImagePath('img') as img_path, \
      iotests.FilePath('mig_fifo') as fifo, \
      iotests.VM(path_suffix='a') as vm_a, \
      iotests.VM(path_suffix='b') as vm_b:
@@ -49,7 +50,7 @@ with iotests.FilePath('img') as img_path, \
 
         vm.add_device('virtio-blk,drive=%s,iothread=iothread0' % root)
 
-    iotests.qemu_img_pipe('create', '-f', iotests.imgfmt, img_path, '64M')
+    create_test_image(img_path, '64M')
 
     os.mkfifo(fifo)
 
-- 
2.21.0




reply via email to

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