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 <rka...@virtuozzo.com> --- 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