From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= 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> References: <20170628200857.1718-1-rkrcmar@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Paolo Bonzini , Drew Jones , Laurent Vivier , Thomas Huth , David Hildenbrand To: kvm@vger.kernel.org Return-path: 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) In-Reply-To: <20170628200857.1718-1-rkrcmar@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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 -- 2.13.2