[kvm-unit-tests PATCH 2/4] powerpc/run: use qemu_binary function for powerpc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Balamuruhan S <bala24@xxxxxxxxxxxxxxxxxx>
---
 powerpc/run | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/powerpc/run b/powerpc/run
index d92608e..4302fe2 100755
--- a/powerpc/run
+++ b/powerpc/run
@@ -28,13 +28,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 'pseries' > /dev/null; then
 	echo "$qpath doesn't support pSeries ('-machine pseries'). Exiting."
-- 
2.7.4




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux