]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: use correct binary path on rpm-based systems
authorJosh Durgin <jdurgin@redhat.com>
Mon, 2 Feb 2015 15:43:35 +0000 (16:43 +0100)
committerJosh Durgin <jdurgin@redhat.com>
Wed, 11 Feb 2015 22:24:14 +0000 (14:24 -0800)
Fixes: #10715
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
(cherry picked from commit 05ce2aa1bf030ea225300b48e7914577a412b38c)

qa/workunits/rbd/qemu-iotests.sh

index 91e62734e6cee1eb47552c74afbc3340e3d0236a..c453743782892f709b8dab814308eb7c3ea37946 100755 (executable)
@@ -38,7 +38,13 @@ cd "$iotests"
 
 mkdir bin
 # qemu-iotests expects a binary called just 'qemu' to be available
-ln -s `which qemu-system-x86_64` bin/qemu
+if [ -x '/usr/bin/qemu-system-x86_64' ]
+then
+    QEMU='/usr/bin/qemu-system-x86_64'
+else
+    QEMU='/usr/libexec/qemu-kvm'
+fi
+ln -s $QEMU bin/qemu
 
 # this is normally generated by configure, but has nothing but a python
 # binary definition, which we don't care about.  for some reason it is