Signed-off-by: Max Reitz <mreitz@redhat.com>
---
tests/qemu-iotests/218 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/qemu-iotests/218 b/tests/qemu-iotests/218
index e18e31076b..6f6fe6588e 100755
--- a/tests/qemu-iotests/218
+++ b/tests/qemu-iotests/218
@@ -27,7 +27,7 @@
# Creator/Owner: Max Reitz <mreitz@redhat.com>
import iotests
-from iotests import log, qemu_img, qemu_io_silent
+from iotests import log, create_test_image, qemu_io_silent
iotests.script_initialize(supported_fmts=['qcow2', 'raw'])
@@ -142,9 +142,9 @@ log('=== Cancel mirror job from throttled node by quitting ===')
log('')
with iotests.VM() as vm, \
- iotests.FilePath('src.img') as src_img_path:
+ iotests.ImagePath('src.img') as src_img_path:
- assert qemu_img('create', '-f', iotests.imgfmt, src_img_path, '64M') == 0
+ assert create_test_image(src_img_path, '64M') == 0
assert qemu_io_silent('-f', iotests.imgfmt, src_img_path,
'-c', 'write -P 42 0M 64M') == 0
--
2.21.0