qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 18/67] iotests/044: Honor $IMGOPTS


From: Max Reitz
Subject: [PATCH 18/67] iotests/044: Honor $IMGOPTS
Date: Tue, 1 Oct 2019 21:46:26 +0200

Signed-off-by: Max Reitz <address@hidden>
---
 tests/qemu-iotests/044 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/qemu-iotests/044 b/tests/qemu-iotests/044
index 97ba98e628..a5e13751e1 100755
--- a/tests/qemu-iotests/044
+++ b/tests/qemu-iotests/044
@@ -23,7 +23,7 @@ import os
 import qcow2
 from qcow2 import QcowHeader
 import iotests
-from iotests import qemu_img, qemu_img_verbose, qemu_io
+from iotests import create_test_image, remove_test_image, qemu_img_verbose, 
qemu_io
 import struct
 import subprocess
 import sys
@@ -100,13 +100,13 @@ class TestRefcountTableGrowth(iotests.QMPTestCase):
 
 
     def setUp(self):
-        qemu_img('create', '-f', iotests.imgfmt, '-o', 'cluster_size=512', 
test_img, '16G')
+        create_test_image(test_img, '16G', opts=['cluster_size=512'])
         self.preallocate(test_img)
         pass
 
 
     def tearDown(self):
-        os.remove(test_img)
+        remove_test_image(test_img)
         pass
 
     def test_grow_refcount_table(self):
-- 
2.21.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]