[PATCH 1/1] qemu-iotests: Try host architecture as first when detecting QEMU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Currently the QEMU_PROG detection simply gets the first available
qemu-binary. This patch adds to the list the current architecture which
should give better results.

Signed-off-by: Lukáš Doktor <ldoktor@xxxxxxxxxx>
---
 tests/qemu-iotests/check | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/qemu-iotests/check b/tests/qemu-iotests/check
index ec8033350d..ef2aede965 100755
--- a/tests/qemu-iotests/check
+++ b/tests/qemu-iotests/check
@@ -542,7 +542,9 @@ then
         export QEMU_PROG="$build_root/$arch-softmmu/qemu-system-$arch"
     else
         pushd "$build_root" > /dev/null
-        for binary in *-softmmu/qemu-system-*
+        arch=$(uname -m)
+        [[ "$arch" =~ "ppc64" ]] && arch=ppc64  # ppc64le machine uses ppc64 target
+        for binary in "$arch-softmmu/qemu-system-$arch" *-softmmu/qemu-system-*
         do
             if [ -x "$binary" ]
             then
-- 
2.14.3




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux