iotests: Check for quorum support in test 139
authorAlberto Garcia <berto@igalia.com>
Tue, 10 Nov 2015 16:28:11 +0000 (18:28 +0200)
committerMax Reitz <mreitz@redhat.com>
Wed, 11 Nov 2015 15:59:44 +0000 (16:59 +0100)
The quorum driver is always built in, but it is disabled during
run-time if there's no SHA256 support available (see commit e94867e).

This patch skips the quorum test in iotest 139 in that case.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Message-id: 1447172891-20410-1-git-send-email-berto@igalia.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/139

index b5470f709cd7f356c61b5cbe59f9fba41575fe4d..42f78c7baa1218a90e7ac45b79e67f374745a104 100644 (file)
@@ -400,6 +400,8 @@ class TestBlockdevDel(iotests.QMPTestCase):
         self.checkBlockDriverState('node1', False)
 
     def testQuorum(self):
+        if not 'quorum' in iotests.qemu_img_pipe('--help'):
+            return
         self.addQuorum('quorum0', 'node0', 'node1')
         # We cannot remove the children of a Quorum device
         self.delBlockDriverState('node0', expect_error = True)