diff options
author | Lukáš Doktor <ldoktor@redhat.com> | 2018-03-29 13:20:53 +0200 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2018-04-03 17:39:37 +0200 |
commit | 96914159b7c4f9cd574301517c15b0743a050f95 (patch) | |
tree | 6fbc930966a905868be9c3e5d3dd00c1fd17a77c /tests/qemu-iotests/common.config | |
parent | 733d1dce0f3c8ab7b79a173f6482781d3718f844 (diff) | |
download | qemu-96914159b7c4f9cd574301517c15b0743a050f95.zip qemu-96914159b7c4f9cd574301517c15b0743a050f95.tar.gz qemu-96914159b7c4f9cd574301517c15b0743a050f95.tar.bz2 |
qemu-iotests: Use ppc64 qemu_arch on ppc64le host
The qemu target does not always correspond to the host machine type. For
example ppc64le machine target is ppc64. Let's introduce "qemu_arch"
variable to store the matching qemu architecture related to the current
architecture and use it when auto-detecting the default qemu binary.
Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Message-id: 20180329112053.5399-2-ldoktor@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/common.config')
-rw-r--r-- | tests/qemu-iotests/common.config | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/qemu-iotests/common.config b/tests/qemu-iotests/common.config index cdcda54..102aa68 100644 --- a/tests/qemu-iotests/common.config +++ b/tests/qemu-iotests/common.config @@ -23,6 +23,7 @@ PATH=".:$PATH" HOSTOS=`uname -s` arch=`uname -m` +[[ "$arch" =~ "ppc64" ]] && qemu_arch=ppc64 || qemu_arch="$arch" export PWD=`pwd` |