[kvm-unit-tests PATCH 2/5] run_tests: add summary to powerpc and s390

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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ář <rkrcmar@xxxxxxxxxx>
---
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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux