From: Mike Qiu <[email protected]>

Currently, the acceptable qemu binary haven't include ppc64, while
this should be acceptable in host ppc64 platform.

So add the exactly host arch to the acceptable qemu binary.

Signed-off-by: Mike Qiu <[email protected]>
---
 virttest/qemu_installer.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/virttest/qemu_installer.py b/virttest/qemu_installer.py
index ada1ce3..ef154ce 100644
--- a/virttest/qemu_installer.py
+++ b/virttest/qemu_installer.py
@@ -24,8 +24,8 @@ class QEMUBaseInstaller(base_installer.BaseInstaller):
     # We'll look for one of these binaries when linking the QEMU binary
     # to the test directory
     #
-    ACCEPTABLE_QEMU_BIN_NAMES = ['qemu-kvm',
-                                 'qemu-system-x86_64']
+    qemu_system = 'qemu-system-' + utils.system_output('uname -i')
+    ACCEPTABLE_QEMU_BIN_NAMES = ['qemu-kvm', qemu_system]
 
     #
     # The default names for the binaries
-- 
1.7.7.6

_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel

Reply via email to