From 1205867d3afe6d457483f9f51aaee79cca74e040 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Mon, 2 Feb 2015 16:43:35 +0100 Subject: [PATCH] qa: use correct binary path on rpm-based systems Fixes: #10715 Signed-off-by: Josh Durgin (cherry picked from commit 05ce2aa1bf030ea225300b48e7914577a412b38c) --- qa/workunits/rbd/qemu-iotests.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/qa/workunits/rbd/qemu-iotests.sh b/qa/workunits/rbd/qemu-iotests.sh index 91e62734e6cee..c453743782892 100755 --- a/qa/workunits/rbd/qemu-iotests.sh +++ b/qa/workunits/rbd/qemu-iotests.sh @@ -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 -- 2.39.5