diff mbox series

[44/67] iotests/208: Honor $IMGOPTS

Message ID 20191001194715.2796-45-mreitz@redhat.com
State New
Headers show
Series iotests: Honor $IMGOPTS in Python tests | expand

Commit Message

Max Reitz Oct. 1, 2019, 7:46 p.m. UTC
Signed-off-by: Max Reitz <mreitz@redhat.com>
---
 tests/qemu-iotests/208 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tests/qemu-iotests/208 b/tests/qemu-iotests/208
index dfce6f9fe4..cd565eea43 100755
--- a/tests/qemu-iotests/208
+++ b/tests/qemu-iotests/208
@@ -21,16 +21,17 @@ 
 # blockdev-snapshot-sync.
 
 import iotests
+from iotests import create_test_image
 
 iotests.script_initialize(supported_fmts=['generic'])
 
-with iotests.FilePath('disk.img') as disk_img_path, \
+with iotests.ImagePath('disk.img') as disk_img_path, \
      iotests.FilePath('disk-snapshot.img') as disk_snapshot_img_path, \
      iotests.FilePath('nbd.sock') as nbd_sock_path, \
      iotests.VM() as vm:
 
     img_size = '10M'
-    iotests.qemu_img_create('-f', iotests.imgfmt, disk_img_path, img_size)
+    create_test_image(disk_img_path, img_size)
 
     iotests.log('Launching VM...')
     (vm.add_drive(disk_img_path, 'node-name=drive0-node', interface='none')