diff mbox series

[36/67] iotests/165: Honor $IMGOPTS

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

Patch

diff --git a/tests/qemu-iotests/165 b/tests/qemu-iotests/165
index 97dd7102c3..0c92947f72 100755
--- a/tests/qemu-iotests/165
+++ b/tests/qemu-iotests/165
@@ -22,7 +22,7 @@  from __future__ import print_function
 import os
 import re
 import iotests
-from iotests import qemu_img
+from iotests import create_test_image, remove_test_image
 
 disk = os.path.join(iotests.test_dir, 'disk')
 disk_size = 0x40000000 # 1G
@@ -37,10 +37,10 @@  regions2 = ((0x10000000, 0x20000),
 class TestPersistentDirtyBitmap(iotests.QMPTestCase):
 
     def setUp(self):
-        qemu_img('create', '-f', iotests.imgfmt, disk, str(disk_size))
+        create_test_image(disk, disk_size)
 
     def tearDown(self):
-        os.remove(disk)
+        remove_test_image(disk)
 
     def mkVm(self):
         return iotests.VM().add_drive(disk)