]> xenbits.xensource.com Git - libvirt.git/commitdiff
travis: Print test log file from distcheck as well
authorMartin Kletzander <mkletzan@redhat.com>
Mon, 30 Apr 2018 17:49:07 +0000 (19:49 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 21 May 2018 13:17:14 +0000 (15:17 +0200)
Since we started using `make distcheck` in travis, the part that's printing the
tests/test-suite.log file is rather pointless.  Let's check for both known
locations (keeping the previous one there on purpose) so that the output is
usable again.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
.travis.yml

index 140072b80199c1e73bce05234e88d76ee712c82b..f4dd0427a976ba9e59068133dc83259636696731 100644 (file)
@@ -118,8 +118,11 @@ script:
 
 after_failure:
   - echo '============================================================================'
-  - 'if [ -f $(pwd)/tests/test-suite.log ]; then
+  - 'ver=$(sed -n "s/AC_INIT(\[libvirt\], \[\([0-9.]*\)\],.*/\1/p" configure.ac);
+    if [ -f $(pwd)/tests/test-suite.log ]; then
         cat $(pwd)/tests/test-suite.log;
+    elif [ -f libvirt-$ver/_build/tests/test-suite.log ]; then
+        cat libvirt-$ver/_build/tests/test-suite.log;
     else
         echo "=== NO LOG FILE FOUND ===";
     fi'