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