[libvirt] [PATCH] CI: show the log in case of failure

Martin Kletzander mkletzan at redhat.com
Thu May 25 14:15:40 UTC 2017


On Thu, May 25, 2017 at 02:35:53PM +0200, Martin Kletzander wrote:
>On Thu, May 25, 2017 at 02:19:45AM -0300, claudioandre.br at gmail.com wrote:
>>From: Claudio André <claudioandre.br at gmail.com>
>>
>>Disclosure 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 | 8 ++++++++
>> 1 file changed, 8 insertions(+)
>>
>>diff --git a/.travis.yml b/.travis.yml
>>index 266ffff..5a3e765 100644
>>--- a/.travis.yml
>>+++ b/.travis.yml
>>@@ -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'
>
>I need to investigate why this doesn't work, I don't have that file
>there after 'make check'.
>

Just figured that out.  The systems in Travis are just so old that the
automake there doesn't create the test-suite.log =(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170525/5dec4383/attachment-0001.sig>


More information about the libvir-list mailing list