[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 32/67] iotests/151: Honor $IMGOPTS
From: |
Max Reitz |
Subject: |
[PATCH 32/67] iotests/151: Honor $IMGOPTS |
Date: |
Tue, 1 Oct 2019 21:46:40 +0200 |
Signed-off-by: Max Reitz <address@hidden>
---
tests/qemu-iotests/151 | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/qemu-iotests/151 b/tests/qemu-iotests/151
index 76ae265cc1..bfe2bbb200 100755
--- a/tests/qemu-iotests/151
+++ b/tests/qemu-iotests/151
@@ -20,7 +20,7 @@
import os
import iotests
-from iotests import qemu_img
+from iotests import create_test_image, remove_test_image
source_img = os.path.join(iotests.test_dir, 'source.' + iotests.imgfmt)
target_img = os.path.join(iotests.test_dir, 'target.' + iotests.imgfmt)
@@ -30,8 +30,8 @@ class TestActiveMirror(iotests.QMPTestCase):
potential_writes_in_flight = True
def setUp(self):
- qemu_img('create', '-f', iotests.imgfmt, source_img, '128M')
- qemu_img('create', '-f', iotests.imgfmt, target_img, '128M')
+ create_test_image(source_img, '128M')
+ create_test_image(target_img, '128M')
blk_source = {'id': 'source',
'if': 'none',
@@ -58,8 +58,8 @@ class TestActiveMirror(iotests.QMPTestCase):
self.assertTrue(iotests.compare_images(source_img, target_img),
'mirror target does not match source')
- os.remove(source_img)
- os.remove(target_img)
+ remove_test_image(source_img)
+ remove_test_image(target_img)
def doActiveIO(self, sync_source_and_target):
# Fill the source image
--
2.21.0
- [PATCH 22/67] iotests/057: Honor $IMGOPTS, (continued)
- [PATCH 22/67] iotests/057: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 23/67] iotests/065: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 24/67] iotests/096: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 27/67] iotests/129: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 28/67] iotests/132: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 25/67] iotests/118: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 26/67] iotests/124: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 29/67] iotests/139: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 30/67] iotests/147: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 31/67] iotests/148: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 32/67] iotests/151: Honor $IMGOPTS,
Max Reitz <=
- [PATCH 33/67] iotests/152: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 34/67] iotests/155: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 35/67] iotests/163: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 36/67] iotests/165: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 37/67] iotests/169: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 38/67] iotests/194: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 39/67] iotests/196: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 40/67] iotests/199: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 41/67] iotests/202: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 42/67] iotests/203: Honor $IMGOPTS, Max Reitz, 2019/10/01