diff mbox series

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

Message ID 20191001194715.2796-46-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/209 | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/tests/qemu-iotests/209 b/tests/qemu-iotests/209
index a77f884166..eb1215afd7 100755
--- a/tests/qemu-iotests/209
+++ b/tests/qemu-iotests/209
@@ -19,15 +19,16 @@ 
 #
 
 import iotests
-from iotests import qemu_img_create, qemu_io, qemu_img_verbose, qemu_nbd, \
-                    file_path
+from iotests import create_test_image, qemu_io, qemu_img_verbose, qemu_nbd, \
+                    file_path, image_path
 
 iotests.script_initialize(supported_fmts=['qcow2'])
 
-disk, nbd_sock = file_path('disk', 'nbd-sock')
+nbd_sock = file_path('nbd-sock')
+disk = image_path('disk')
 nbd_uri = 'nbd+unix:///exp?socket=' + nbd_sock
 
-qemu_img_create('-f', iotests.imgfmt, disk, '1M')
+create_test_image(disk, '1M')
 qemu_io('-f', iotests.imgfmt, '-c', 'write 0 512K', disk)
 
 qemu_nbd('-k', nbd_sock, '-x', 'exp', '-f', iotests.imgfmt, disk)