diff mbox series

[59/67] iotests/248: Honor $IMGOPTS

Message ID 20191001194715.2796-60-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/248 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/tests/qemu-iotests/248 b/tests/qemu-iotests/248
index 0adc4da802..90821eaeda 100755
--- a/tests/qemu-iotests/248
+++ b/tests/qemu-iotests/248
@@ -19,7 +19,7 @@ 
 #
 
 import iotests
-from iotests import qemu_img_create, qemu_io, file_path, filter_qmp_testfiles
+from iotests import create_test_image, qemu_io, image_path, filter_qmp_testfiles
 
 iotests.script_initialize(supported_fmts=['qcow2'],
                           # With an external data file, we would need
@@ -27,12 +27,12 @@  iotests.script_initialize(supported_fmts=['qcow2'],
                           # of @file
                           unsupported_imgopts=['data_file'])
 
-source, target = file_path('source', 'target')
+source, target = image_path('source', 'target')
 size = 5 * 1024 * 1024
 limit = 2 * 1024 * 1024
 
-qemu_img_create('-f', iotests.imgfmt, source, str(size))
-qemu_img_create('-f', iotests.imgfmt, target, str(size))
+create_test_image(source, size)
+create_test_image(target, size)
 qemu_io('-c', 'write 0 {}'.format(size), source)
 
 # raw format don't like empty files