Signed-off-by: Max Reitz <mreitz@redhat.com>
---
tests/qemu-iotests/254 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/qemu-iotests/254 b/tests/qemu-iotests/254
index 0404faf853..b44771fbc6 100755
--- a/tests/qemu-iotests/254
+++ b/tests/qemu-iotests/254
@@ -19,16 +19,16 @@
#
import iotests
-from iotests import qemu_img_create, file_path, log
+from iotests import create_test_image, image_path, log
iotests.script_initialize(supported_fmts=['qcow2'],
# compat=1.1 is needed for dirty bitmaps
unsupported_imgopts=['compat=0.10'])
-disk, top = file_path('disk', 'top')
+disk, top = image_path('disk', 'top')
size = 1024 * 1024
-qemu_img_create('-f', iotests.imgfmt, disk, str(size))
+create_test_image(disk, size)
vm = iotests.VM().add_drive(disk, opts='node-name=base')
vm.launch()
--
2.21.0