From: Balamuruhan S Subject: [kvm-unit-tests PATCH 3/4] arm/run: use qemu_binary function for arm Date: Fri, 21 Apr 2017 11:45:05 +0530 Message-ID: <1492755305-8880-1-git-send-email-bala24@linux.vnet.ibm.com> Cc: drjones@redhat.com, Balamuruhan S To: kvm@vger.kernel.org Return-path: Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:47316 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1035565AbdDUGQc (ORCPT ); Fri, 21 Apr 2017 02:16:32 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v3L6FCPX105750 for ; Fri, 21 Apr 2017 02:16:31 -0400 Received: from e23smtp06.au.ibm.com (e23smtp06.au.ibm.com [202.81.31.148]) by mx0a-001b2d01.pphosted.com with ESMTP id 29xyxcvmr0-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 21 Apr 2017 02:16:30 -0400 Received: from localhost by e23smtp06.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 21 Apr 2017 16:16:24 +1000 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay10.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v3L6GDkp3670484 for ; Fri, 21 Apr 2017 16:16:21 +1000 Received: from d23av01.au.ibm.com (localhost [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id v3L6FmVd031152 for ; Fri, 21 Apr 2017 16:15:48 +1000 Sender: kvm-owner@vger.kernel.org List-ID: Changes required for arm/run to use the qemu_binary function for seaching the qemu Signed-off-by: Balamuruhan S --- 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