[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 27/67] iotests/129: Honor $IMGOPTS
From: |
Max Reitz |
Subject: |
[PATCH 27/67] iotests/129: Honor $IMGOPTS |
Date: |
Tue, 1 Oct 2019 21:46:35 +0200 |
Signed-off-by: Max Reitz <address@hidden>
---
tests/qemu-iotests/129 | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/tests/qemu-iotests/129 b/tests/qemu-iotests/129
index cd6b9e9ce7..379719d85b 100755
--- a/tests/qemu-iotests/129
+++ b/tests/qemu-iotests/129
@@ -20,6 +20,7 @@
import os
import iotests
+from iotests import create_test_image, remove_test_image
import time
class TestStopWithBlockJob(iotests.QMPTestCase):
@@ -28,8 +29,8 @@ class TestStopWithBlockJob(iotests.QMPTestCase):
base_img = os.path.join(iotests.test_dir, 'base.img')
def setUp(self):
- iotests.qemu_img('create', '-f', iotests.imgfmt, self.base_img, "1G")
- iotests.qemu_img('create', '-f', iotests.imgfmt, self.test_img, "-b",
self.base_img)
+ create_test_image(self.base_img, '1G')
+ create_test_image(self.test_img, backing_file=self.base_img)
iotests.qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x5d 1M 128M',
self.test_img)
self.vm = iotests.VM().add_drive(self.test_img)
self.vm.launch()
@@ -46,6 +47,12 @@ class TestStopWithBlockJob(iotests.QMPTestCase):
result = self.vm.qmp("block_set_io_throttle", conv_keys=False,
**params)
self.vm.shutdown()
+ remove_test_image(self.test_img)
+ remove_test_image(self.base_img)
+ try:
+ os.remove(self.target_img)
+ except OSError:
+ pass
def do_test_stop(self, cmd, **args):
"""Test 'stop' while block job is running on a throttled drive.
--
2.21.0
- [PATCH 17/67] iotests/041: Honor $IMGOPTS, (continued)
- [PATCH 17/67] iotests/041: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 19/67] iotests/045: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 21/67] iotests/056: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [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 20/67] iotests/055: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 24/67] iotests/096: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 25/67] iotests/118: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 28/67] iotests/132: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 26/67] iotests/124: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 27/67] iotests/129: Honor $IMGOPTS,
Max Reitz <=
- [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 32/67] iotests/151: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 31/67] iotests/148: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [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