From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Subject: [PATCH v3 6/9] scripts/runtime: skip tests that cannot run Date: Fri, 15 Apr 2016 22:52:48 +0200 Message-ID: <1460753571-20732-7-git-send-email-rkrcmar@redhat.com> References: <1460753571-20732-1-git-send-email-rkrcmar@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Paolo Bonzini , Andrew Jones To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:58442 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751559AbcDOUxS (ORCPT ); Fri, 15 Apr 2016 16:53:18 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6287F62658 for ; Fri, 15 Apr 2016 20:53:18 +0000 (UTC) In-Reply-To: <1460753571-20732-1-git-send-email-rkrcmar@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: A case where QEMU won't run the kernel should be considered as skipped. Hyper-V tests used to FAIL on old QEMUs. The infamous QEMU=3D/dev/null =46AIL streak is covered too. Signed-off-by: Radim Kr=C4=8Dm=C3=A1=C5=99 --- scripts/runtime.bash | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/runtime.bash b/scripts/runtime.bash index ed073721216c..4f29a59307f3 100644 --- a/scripts/runtime.bash +++ b/scripts/runtime.bash @@ -39,6 +39,12 @@ function run() fi done =20 + cmdline=3D"TIMEOUT=3D$timeout ACCEL=3D$accel $RUNTIME_arch_run /de= v/null -smp $smp $opts" + eval $cmdline |& grep -q "could not load kernel" || { + echo "skip $1 (QEMU won't run)" + return 2 + } + cmdline=3D"TESTNAME=3D$testname TIMEOUT=3D$timeout ACCEL=3D$accel = $RUNTIME_arch_run $kernel -smp $smp $opts" if [ "$verbose" =3D "yes" ]; then echo $cmdline --=20 2.8.1