[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 04/17] iotest 030: skip quorum test setup/teardown t
From: |
Roman Kagan |
Subject: |
[Qemu-devel] [PATCH 04/17] iotest 030: skip quorum test setup/teardown too |
Date: |
Thu, 26 Apr 2018 19:19:45 +0300 |
If quorum driver is not enabled, test 030 skips the corresponding
testcase. This, however, is insufficient: quorum is first used in the
testsuite's setUp.
To avoid erroring out here, skip setUp/tearDown, too.
Signed-off-by: Roman Kagan <address@hidden>
---
tests/qemu-iotests/030 | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/qemu-iotests/030 b/tests/qemu-iotests/030
index 640a6dfd10..6b20ff005e 100755
--- a/tests/qemu-iotests/030
+++ b/tests/qemu-iotests/030
@@ -423,6 +423,9 @@ class TestQuorum(iotests.QMPTestCase):
backing = []
def setUp(self):
+ if not iotests.supports_quorum():
+ return
+
opts = ['driver=quorum', 'vote-threshold=2']
# Initialize file names and command-line options
@@ -445,6 +448,9 @@ class TestQuorum(iotests.QMPTestCase):
self.vm.launch()
def tearDown(self):
+ if not iotests.supports_quorum():
+ return
+
self.vm.shutdown()
for img in self.children:
os.remove(img)
--
2.14.3
- [Qemu-devel] [PATCH 00/17] iotests: don't choke on disabled drivers, Roman Kagan, 2018/04/26
- [Qemu-devel] [PATCH 04/17] iotest 030: skip quorum test setup/teardown too,
Roman Kagan <=
- [Qemu-devel] [PATCH 01/17] block: iterate_format with account of whitelisting, Roman Kagan, 2018/04/26
- [Qemu-devel] [PATCH 12/17] iotest 093: notrun if null-co or null-aio is disabled, Roman Kagan, 2018/04/26
- [Qemu-devel] [PATCH 08/17] iotest 056: skip testcases using blkdebug if disabled, Roman Kagan, 2018/04/26
- [Qemu-devel] [PATCH 07/17] iotest 055: require blkdebug, Roman Kagan, 2018/04/26
- [Qemu-devel] [PATCH 17/17] iotest 184: notrun if null-co or throttle is disabled, Roman Kagan, 2018/04/26
- [Qemu-devel] [PATCH 16/17] iotest 147: notrun if nbd is disabled, Roman Kagan, 2018/04/26
- [Qemu-devel] [PATCH 02/17] iotests: iotests.py: prevent deadlock in subprocess, Roman Kagan, 2018/04/26
- [Qemu-devel] [PATCH 10/17] iotest 081: notrun if quorum is disabled, Roman Kagan, 2018/04/26
- [Qemu-devel] [PATCH 15/17] iotest 139: skip testcases using disabled drivers, Roman Kagan, 2018/04/26