Travis: print acceptance tests logs in case of job failure
authorCleber Rosa <crosa@redhat.com>
Fri, 7 Jun 2019 15:22:16 +0000 (11:22 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 18 Jun 2019 14:15:08 +0000 (11:15 -0300)
Because Travis doesn't allow us to keep files produced during tests
(such as log files), let's print the complete job log to the "console"
in case of job failures.

This is a debugging aid, and given that there's been some timeouts
happening on some tests, we absolutely needs the logs to have a proper
action.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20190607152223.9467-2-crosa@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
.travis.yml

index 2f1658602edf7b389674882142fc28e2012996ca..aeb9b211cd7fd45139f04923402a851b6413c32e 100644 (file)
@@ -233,6 +233,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"
         - TEST_CMD="make check-acceptance"
+      after_failure:
+        - cat tests/results/latest/job.log
       addons:
         apt:
           packages: