[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 04/14] travis.yml: avocado: Print logs of non-pass tests only
From: |
Alex Bennée |
Subject: |
[PULL v2 04/14] travis.yml: avocado: Print logs of non-pass tests only |
Date: |
Thu, 9 Jan 2020 14:18:48 +0000 |
From: Wainer dos Santos Moschetta <address@hidden>
The acceptance tests build on Travis is configured to print
the entire Avocado's job log in case any test fail. Usually one is
interested on failed tests only though. So this change the Travis
configuration in order to show the log of tests which status is
different from 'PASS' and 'SKIP' only. Note that 'CANCEL'-ed tests
will have the log printed too because it can help to debug some
condition on CI environment which is not being fulfilled.
Signed-off-by: Wainer dos Santos Moschetta <address@hidden>
Signed-off-by: Alex Bennée <address@hidden>
Message-Id: <address@hidden>
diff --git a/.travis.yml b/.travis.yml
index 638fba4799a..93838bf0f8b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -262,8 +262,8 @@ matrix:
- env:
- CONFIG="--python=/usr/bin/python3
--target-list=x86_64-softmmu,mips-softmmu,mips64el-softmmu,aarch64-softmmu,arm-softmmu,s390x-softmmu,alpha-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu,sparc-softmmu"
- TEST_CMD="make check-acceptance"
- after_failure:
- - cat tests/results/latest/job.log
+ after_script:
+ - python3 -c 'import json; r =
json.load(open("tests/results/latest/results.json")); [print(t["logfile"]) for
t in r["tests"] if t["status"] not in ("PASS", "SKIP")]' | xargs cat
addons:
apt:
packages:
--
2.20.1
- [PULL v2 00/14] testing fixes and semihosting console support, Alex Bennée, 2020/01/09
- [PULL v2 02/14] tests/vm: update openbsd to release 6.6, Alex Bennée, 2020/01/09
- [PULL v2 01/14] hw/i386/x86-iommu: Add missing stubs, Alex Bennée, 2020/01/09
- [PULL v2 03/14] freebsd: use python37, Alex Bennée, 2020/01/09
- [PULL v2 04/14] travis.yml: avocado: Print logs of non-pass tests only,
Alex Bennée <=
- [PULL v2 05/14] travis.yml: Detach build and test steps, Alex Bennée, 2020/01/09
- [PULL v2 06/14] travis.yml: duplicate before_script for MacOSX, Alex Bennée, 2020/01/09
- [PULL v2 07/14] travis.yml: install homebrew python for OS X, Alex Bennée, 2020/01/09
- [PULL v2 09/14] target/arm: remove unused EXCP_SEMIHOST leg, Alex Bennée, 2020/01/09
- [PULL v2 08/14] testing: don't nest build for fp-test, Alex Bennée, 2020/01/09
- [PULL v2 13/14] tests/tcg: extract __semi_call into a header and expand, Alex Bennée, 2020/01/09
- [PULL v2 10/14] target/arm: only update pc after semihosting completes, Alex Bennée, 2020/01/09
- [PULL v2 14/14] tests/tcg: add user version of dumb-as-bricks semiconsole test, Alex Bennée, 2020/01/09
- [PULL v2 11/14] semihosting: add qemu_semihosting_console_inc for SYS_READC, Alex Bennée, 2020/01/09