diff mbox series

[37/67] iotests/169: Honor $IMGOPTS

Message ID 20191001194715.2796-38-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/169 | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/tests/qemu-iotests/169 b/tests/qemu-iotests/169
index 5e978b7b7d..8d41463567 100755
--- a/tests/qemu-iotests/169
+++ b/tests/qemu-iotests/169
@@ -24,7 +24,7 @@  import time
 import itertools
 import operator
 import re
-from iotests import qemu_img
+from iotests import create_test_image, remove_test_image
 
 
 disk_a = os.path.join(iotests.test_dir, 'disk_a')
@@ -39,16 +39,16 @@  class TestDirtyBitmapMigration(iotests.QMPTestCase):
     def tearDown(self):
         self.vm_a.shutdown()
         self.vm_b.shutdown()
-        os.remove(disk_a)
-        os.remove(disk_b)
+        remove_test_image(disk_a)
+        remove_test_image(disk_b)
         try:
             os.remove(mig_file)
         except OSError:
             pass
 
     def setUp(self):
-        qemu_img('create', '-f', iotests.imgfmt, disk_a, size)
-        qemu_img('create', '-f', iotests.imgfmt, disk_b, size)
+        create_test_image(disk_a, size)
+        create_test_image(disk_b, size)
 
         self.vm_a = iotests.VM(path_suffix='a').add_drive(disk_a)
         self.vm_a.launch()