From patchwork Wed Jun 28 20:08:54 2017 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: 9815311 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C6F7D60365 for ; Wed, 28 Jun 2017 20:09:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B8F8D284EA for ; Wed, 28 Jun 2017 20:09:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC25328517; Wed, 28 Jun 2017 20:09:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,HK_RANDOM_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5218A284EA for ; Wed, 28 Jun 2017 20:09:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751747AbdF1UJS (ORCPT ); Wed, 28 Jun 2017 16:09:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32463 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751668AbdF1UJR (ORCPT ); Wed, 28 Jun 2017 16:09:17 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A3F93C04B321 for ; Wed, 28 Jun 2017 20:09:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com A3F93C04B321 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=rkrcmar@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com A3F93C04B321 Received: from potion (unknown [10.43.2.65]) by smtp.corp.redhat.com (Postfix) with SMTP id 704635C894; Wed, 28 Jun 2017 20:09:12 +0000 (UTC) Received: by potion (sSMTP sendmail emulation); Wed, 28 Jun 2017 22:09:11 +0200 From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= To: kvm@vger.kernel.org Cc: Paolo Bonzini , Drew Jones , Laurent Vivier , Thomas Huth , David Hildenbrand Subject: [kvm-unit-tests PATCH 2/5] run_tests: add summary to powerpc and s390 Date: Wed, 28 Jun 2017 22:08:54 +0200 Message-Id: <20170628200857.1718-3-rkrcmar@redhat.com> In-Reply-To: <20170628200857.1718-1-rkrcmar@redhat.com> References: <20170628200857.1718-1-rkrcmar@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Wed, 28 Jun 2017 20:09:16 +0000 (UTC) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Looking at the last line was not enough as these architectures have information about the exit on the last two lines. See the last 3 lines. Signed-off-by: Radim Krčmář --- Sample output on powerpc: PASS selftest-setup (2 tests) PASS spapr_hcall (9 tests, 1 expected failures) PASS rtas-get-time-of-day (10 tests) PASS rtas-get-time-of-day-base (10 tests) PASS rtas-set-time-of-day (5 tests) PASS emulator (4 tests) SKIP h_cede_tm (test marked as manual run only) PASS sprs (46 tests) and s390x: FAIL selftest-setup (7 tests) FAIL intercept (3 tests, 2 unexpected failures) s390 selftest-setup is failing even though all tests passed, but there is also: ABORT: selftest: Unexpected program interrupt: 5 at 0x12b7c, ilen 4 --- scripts/runtime.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/runtime.bash b/scripts/runtime.bash index e630279cdd37..ac09e0fd30ac 100644 --- a/scripts/runtime.bash +++ b/scripts/runtime.bash @@ -8,7 +8,7 @@ FAIL() { echo -ne "\e[31mFAIL\e[0m"; } extract_summary() { - tail -1 | grep '^SUMMARY: ' | sed 's/^SUMMARY: /(/;s/$/)/' + tail -3 | grep '^SUMMARY: ' | sed 's/^SUMMARY: /(/;s/$/)/' } # We assume that QEMU is going to work if it tried to load the kernel