From: "Alex Bennée" <alex.bennee@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Fam Zheng" <fam@euphon.net>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Philippe Mathieu-Daudé" <philmd@redhat.com>,
"Wainer dos Santos Moschetta" <wainersm@redhat.com>
Subject: [PATCH v1 4/6] travis.yml: avocado: Print logs of non-pass tests only
Date: Tue, 7 Jan 2020 13:53:09 +0000 [thread overview]
Message-ID: <20200107135311.5215-5-alex.bennee@linaro.org> (raw)
In-Reply-To: <20200107135311.5215-1-alex.bennee@linaro.org>
From: Wainer dos Santos Moschetta <wainersm@redhat.com>
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 <wainersm@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20191230184327.2800-2-wainersm@redhat.com>
---
.travis.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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
next prev parent reply other threads:[~2020-01-07 14:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-07 13:53 [PATCH v1 0/6] current testing/next (python and other fixes) Alex Bennée
2020-01-07 13:53 ` [PATCH v1 1/6] hw/i386/x86-iommu: Add missing stubs Alex Bennée
2020-01-07 14:57 ` Thomas Huth
2020-01-07 13:53 ` [PATCH v1 2/6] tests/vm: update openbsd to release 6.6 Alex Bennée
2020-01-07 13:53 ` [PATCH v1 3/6] freebsd: use python37 Alex Bennée
2020-01-07 13:53 ` Alex Bennée [this message]
2020-01-07 13:53 ` [PATCH v1 5/6] travis.yml: Detach build and test steps Alex Bennée
2020-01-07 15:24 ` Thomas Huth
2020-01-07 13:53 ` [PATCH v1 6/6] travis: install homebrew python for OS X Alex Bennée
2020-01-07 15:18 ` Marc-André Lureau
2020-01-07 19:10 ` Philippe Mathieu-Daudé
2020-01-08 7:00 ` Alex Bennée
2020-01-08 10:48 ` Philippe Mathieu-Daudé
2020-01-08 10:58 ` Daniel P. Berrangé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200107135311.5215-5-alex.bennee@linaro.org \
--to=alex.bennee@linaro.org \
--cc=fam@euphon.net \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=wainersm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).