From: Wainer dos Santos Moschetta <wainersm@redhat.com>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: fam@euphon.net, philmd@redhat.com, qemu-devel@nongnu.org,
crosa@redhat.com
Subject: Re: [PATCH 1/2] travis.yml: avocado: Print logs of non-pass tests only
Date: Thu, 9 Jan 2020 11:27:44 -0200 [thread overview]
Message-ID: <dc087501-61cf-cfa4-91cd-6372690908ea@redhat.com> (raw)
In-Reply-To: <8736cr5x8n.fsf@linaro.org>
On 1/7/20 9:20 AM, Alex Bennée wrote:
> Wainer dos Santos Moschetta <wainersm@redhat.com> writes:
>
>> 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>
>> ---
>> .travis.yml | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/.travis.yml b/.travis.yml
>> index 376b7d6dfa..e7fdcb238c 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
> Shame there is no scriptlet for this sort of thing packaged with
> avocado. Anyway I'll give it a spin and see if any failures come up.
Good point. I'm working on such as scriptlet ('plugin' on Avocado
jargon) but I think we can stick with this change.
Thanks!
- Wainer
>
>> addons:
>> apt:
>> packages:
>
next prev parent reply other threads:[~2020-01-09 13:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-30 18:43 [PATCH 0/2] travis: Improve log browseability Wainer dos Santos Moschetta
2019-12-30 18:43 ` [PATCH 1/2] travis.yml: avocado: Print logs of non-pass tests only Wainer dos Santos Moschetta
2019-12-31 17:08 ` Philippe Mathieu-Daudé
2020-01-07 11:20 ` Alex Bennée
2020-01-09 13:27 ` Wainer dos Santos Moschetta [this message]
2019-12-30 18:43 ` [PATCH 2/2] travis.yml: Detach build and test steps Wainer dos Santos Moschetta
2019-12-31 17:10 ` Philippe Mathieu-Daudé
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=dc087501-61cf-cfa4-91cd-6372690908ea@redhat.com \
--to=wainersm@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=crosa@redhat.com \
--cc=fam@euphon.net \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).