Message ID | 20170628200857.1718-3-rkrcmar@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 28.06.2017 22:08, Radim Krčmář wrote: > 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@redhat.com> > --- > 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 Please use the latest and greatest QEMU from the master branch for s390x ... there have been quite a lot of fixes since v2.9 and some of them are required to get the kvm-unit-tests running properly. Thomas
2017-06-29 07:30+0200, Thomas Huth: > On 28.06.2017 22:08, Radim Krčmář wrote: > > 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 > > Please use the latest and greatest QEMU from the master branch for s390x > ... there have been quite a lot of fixes since v2.9 and some of them are > required to get the kvm-unit-tests running properly. Will do, thanks. In this case, I wanted to demonstrate that the summary gets printed and didn't care what it was. :)
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
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@redhat.com> --- 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(-)