]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
CI: show the log in case of failure
authorClaudio André <claudioandre.br@gmail.com>
Thu, 25 May 2017 05:19:45 +0000 (02:19 -0300)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 25 May 2017 06:58:39 +0000 (08:58 +0200)
Disclose the content of the 'test-suite.log' file (if available) in
case of failures inside Travis-CI. This is needed to understand what
happened and to provide hints about the proper fix (if applicable).

.travis.yml

index 266ffff10429d8a0727b4479cd29449819856b0b..5a3e76510647c286b8ee6956c4303e94b67e9d11 100644 (file)
@@ -83,3 +83,11 @@ matrix:
         # many unit tests fail & so does syntax-check, so skip for now
         # one day we must fix it though....
         - make -j3
+
+after_failure:
+  - echo '============================================================================'
+  - 'if [ -f $(pwd)/tests/test-suite.log ]; then
+        cat $(pwd)/tests/test-suite.log;
+    else
+        echo "=== NO LOG FILE FOUND ===";
+    fi'