From patchwork Fri Apr 15 20:52:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFkaW0gS3LEjW3DocWZ?= X-Patchwork-Id: 8858401 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E21F59F3A0 for ; Fri, 15 Apr 2016 20:53:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 203F52026C for ; Fri, 15 Apr 2016 20:53:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4939420295 for ; Fri, 15 Apr 2016 20:53:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751575AbcDOUxT (ORCPT ); Fri, 15 Apr 2016 16:53:19 -0400 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) Received: from potion (dhcp-1-215.brq.redhat.com [10.34.1.215]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with SMTP id u3FKrGNb019692; Fri, 15 Apr 2016 16:53:16 -0400 Received: by potion (sSMTP sendmail emulation); Fri, 15 Apr 2016 22:53:15 +0200 From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= To: kvm@vger.kernel.org Cc: Paolo Bonzini , Andrew Jones 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> In-Reply-To: <1460753571-20732-1-git-send-email-rkrcmar@redhat.com> References: <1460753571-20732-1-git-send-email-rkrcmar@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 15 Apr 2016 20:53:18 +0000 (UTC) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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=/dev/null FAIL streak is covered too. Signed-off-by: Radim Kr?má? --- 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 + cmdline="TIMEOUT=$timeout ACCEL=$accel $RUNTIME_arch_run /dev/null -smp $smp $opts" + eval $cmdline |& grep -q "could not load kernel" || { + echo "skip $1 (QEMU won't run)" + return 2 + } + cmdline="TESTNAME=$testname TIMEOUT=$timeout ACCEL=$accel $RUNTIME_arch_run $kernel -smp $smp $opts" if [ "$verbose" = "yes" ]; then echo $cmdline