diff mbox series

[54/67] iotests/236: Honor $IMGOPTS

Message ID 20191001194715.2796-55-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:47 p.m. UTC
Signed-off-by: Max Reitz <mreitz@redhat.com>
---
 tests/qemu-iotests/236 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/tests/qemu-iotests/236 b/tests/qemu-iotests/236
index b88779eb0b..ef1d732510 100755
--- a/tests/qemu-iotests/236
+++ b/tests/qemu-iotests/236
@@ -20,7 +20,7 @@ 
 # owner=jsnow@redhat.com
 
 import iotests
-from iotests import log
+from iotests import log, create_test_image
 
 iotests.script_initialize(supported_fmts=['generic'])
 size = 64 * 1024 * 1024
@@ -41,11 +41,11 @@  def query_bitmaps(vm):
     return { "bitmaps": { device['device']: device.get('dirty-bitmaps', []) for
                           device in res['return'] } }
 
-with iotests.FilePath('img') as img_path, \
+with iotests.ImagePath('img') as img_path, \
      iotests.VM() as vm:
 
     log('--- Preparing image & VM ---\n')
-    iotests.qemu_img_create('-f', iotests.imgfmt, img_path, str(size))
+    create_test_image(img_path, size)
     vm.add_drive(img_path)
     vm.launch()