diff mbox series

[PULL,2/2] Travis: print acceptance tests logs in case of job failure

Message ID 20190618144013.6537-3-ehabkost@redhat.com (mailing list archive)
State New, archived
Headers show
Series [PULL,1/2] Revert "travis: Make check-acceptance job more verbose" | expand

Commit Message

Eduardo Habkost June 18, 2019, 2:40 p.m. UTC
From: Cleber Rosa <crosa@redhat.com>

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 | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/.travis.yml b/.travis.yml
index 2f1658602e..aeb9b211cd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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: