summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlberto Garcia <berto@igalia.com>2015-11-10 18:28:11 +0200
committerMax Reitz <mreitz@redhat.com>2015-11-11 16:59:44 +0100
commit92e68987745b0f89f04d29fe1d0c821010d58ea6 (patch)
tree40125a1c80d9c82145b55123f58d07d8a4b6d31f
parenta99dfb45f26bface6830ee5465e57bcdbc53c6c8 (diff)
downloadfocaccia-qemu-92e68987745b0f89f04d29fe1d0c821010d58ea6.tar.gz
focaccia-qemu-92e68987745b0f89f04d29fe1d0c821010d58ea6.zip
iotests: Check for quorum support in test 139
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>
-rw-r--r--tests/qemu-iotests/1392
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/qemu-iotests/139 b/tests/qemu-iotests/139
index b5470f709c..42f78c7baa 100644
--- a/tests/qemu-iotests/139
+++ b/tests/qemu-iotests/139
@@ -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)