All of lore.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH 3/4] arm/run: use qemu_binary function for arm
@ 2017-04-21  6:15 Balamuruhan S
  0 siblings, 0 replies; only message in thread
From: Balamuruhan S @ 2017-04-21  6:15 UTC (permalink / raw)
  To: kvm; +Cc: drjones, Balamuruhan S

Changes required for arm/run to use the qemu_binary function
for seaching the qemu

Signed-off-by: Balamuruhan S <bala24@linux.vnet.ibm.com>
---
 arm/run | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/arm/run b/arm/run
index 2134c9e..696228e 100755
--- a/arm/run
+++ b/arm/run
@@ -31,13 +31,10 @@ if [ -z "$ACCEL" ]; then
 	fi
 fi
 
-qemu="${QEMU:-qemu-system-$ARCH_NAME}"
-qpath=$(which $qemu 2>/dev/null)
+# qemu_binary () defined in scripts/arch-run.bash
+qemu_binary
 
-if [ -z "$qpath" ]; then
-	echo $qemu not found.
-	exit 2
-fi
+qpath=$(which $qemu 2>/dev/null)
 
 if ! $qemu -machine '?' 2>&1 | grep 'ARM Virtual Machine' > /dev/null; then
 	echo "$qpath doesn't support mach-virt ('-machine virt'). Exiting."
-- 
2.7.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-21  6:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-21  6:15 [kvm-unit-tests PATCH 3/4] arm/run: use qemu_binary function for arm Balamuruhan S

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.