]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: use more recent qemu-iotests that support Bionic 27959/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 18 Apr 2019 18:02:45 +0000 (14:02 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 3 May 2019 17:58:44 +0000 (13:58 -0400)
Fixes: http://tracker.ceph.com/issues/24668
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit b184acd218b36b85f5a25678d773c35407a2b745)

qa/workunits/rbd/qemu-iotests.sh

index e775ade72c51b61589a0417d13a58b5020cec7d9..1cd9c4e00c00b4ffe755e49fe179e1a75ab3dbcb 100755 (executable)
@@ -9,13 +9,15 @@ testlist='001 002 003 004 005 008 009 010 011 021 025 032 033 055'
 
 git clone https://github.com/qemu/qemu.git
 cd qemu
-if lsb_release -da | grep -iq xenial; then
+if lsb_release -da 2>&1 | grep -iq 'bionic'; then
+    # Bionic requires a matching test harness
+    git checkout v2.11.0
+elif lsb_release -da 2>&1 | grep -iq 'xenial'; then
     # Xenial requires a recent test harness
     git checkout v2.3.0
 else
     # use v2.2.0-rc3 (last released version that handles all the tests
     git checkout 2528043f1f299e0e88cb026f1ca7c40bbb4e1f80
-
 fi
 
 cd tests/qemu-iotests
@@ -24,6 +26,12 @@ mkdir bin
 if [ -x '/usr/bin/qemu-system-x86_64' ]
 then
     QEMU='/usr/bin/qemu-system-x86_64'
+
+    # Bionic (v2.11.0) tests expect all tools in current directory
+    ln -s $QEMU qemu
+    ln -s /usr/bin/qemu-img
+    ln -s /usr/bin/qemu-io
+    ln -s /usr/bin/qemu-nbd
 else
     QEMU='/usr/libexec/qemu-kvm'