diff mbox series

[48/67] iotests/219: Honor $IMGOPTS

Message ID 20191001194715.2796-49-mreitz@redhat.com (mailing list archive)
State New, archived
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/219 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tests/qemu-iotests/219 b/tests/qemu-iotests/219
index 9ae27cb04e..37e3c70aef 100755
--- a/tests/qemu-iotests/219
+++ b/tests/qemu-iotests/219
@@ -20,6 +20,7 @@ 
 # Check using the job-* QMP commands with block jobs
 
 import iotests
+from iotests import create_test_image
 
 iotests.script_initialize(supported_fmts=['qcow2'])
 
@@ -177,11 +178,11 @@  def test_job_lifecycle(vm, job, job_args, has_ready=False):
     iotests.log(vm.qmp('query-jobs'))
 
 
-with iotests.FilePath('disk.img') as disk_path, \
+with iotests.ImagePath('disk.img') as disk_path, \
      iotests.FilePath('copy.img') as copy_path, \
      iotests.VM() as vm:
 
-    iotests.qemu_img_create('-f', iotests.imgfmt, disk_path, str(img_size))
+    create_test_image(disk_path, img_size)
     iotests.qemu_io('-c', 'write 0 %i' % (img_size),
                     '-f', iotests.imgfmt, disk_path)