diff options
author | Satheesh Rajendran <sathnaga@linux.vnet.ibm.com> | 2019-08-19 13:58:20 +0530 |
---|---|---|
committer | Cleber Rosa <crosa@redhat.com> | 2019-08-28 20:42:16 -0400 |
commit | 9162967ca5285f5ae4968288ff2a4d2eb72f2904 (patch) | |
tree | 391a84b7cbe291f2c3bc3a94faf5e4d767b2a711 /tests/acceptance | |
parent | 23919ddfd56135cad3cb468a8f54d5a595f024f4 (diff) | |
download | qemu-9162967ca5285f5ae4968288ff2a4d2eb72f2904.zip qemu-9162967ca5285f5ae4968288ff2a4d2eb72f2904.tar.gz qemu-9162967ca5285f5ae4968288ff2a4d2eb72f2904.tar.bz2 |
tests.acceptance.avocado_qemu: Add support for powerpc
Current acceptance test will not run properly in powerpc
environment due qemu target is different from arch, this
usually matches, except with bi-endian architectures like ppc64.
uname would return `ppc64` or `ppc64le` based `big` or `little`
endian but qemu `target` is always `ppc64`. Let's handle it.
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com>
Message-Id: <20190819082820.14817-1-sathnaga@linux.vnet.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
Diffstat (limited to 'tests/acceptance')
-rw-r--r-- | tests/acceptance/avocado_qemu/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/acceptance/avocado_qemu/__init__.py b/tests/acceptance/avocado_qemu/__init__.py index aee5d82..bd41e04 100644 --- a/tests/acceptance/avocado_qemu/__init__.py +++ b/tests/acceptance/avocado_qemu/__init__.py @@ -39,6 +39,9 @@ def pick_default_qemu_bin(arch=None): """ if arch is None: arch = os.uname()[4] + # qemu binary path does not match arch for powerpc, handle it + if 'ppc64le' in arch: + arch = 'ppc64' qemu_bin_relative_path = os.path.join("%s-softmmu" % arch, "qemu-system-%s" % arch) if is_readable_executable_file(qemu_bin_relative_path): |