libguestfs: Print failures.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 17 Oct 2017 17:59:45 +0000 (18:59 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 17 Oct 2017 17:59:45 +0000 (18:59 +0100)
If ‘make check-release’ fails, then find all the test-suite.log files
containing the failures and print them in full.

libguestfs_upstream.ml

index b1daa19..4472f4c 100644 (file)
@@ -136,7 +136,13 @@ and tarball_tested version =
 
     ./localconfigure
     make V=1
-    make check-release
+    if ! make check-release; then
+      for f in `find -name test-suite.log | xargs grep -l ^FAIL:`; do
+        echo \"*** $f ***\"
+        cat $f
+      done
+      exit 1
+    fi
   " buildtmp version.tarball
     version.package_version
     (quote (libguestfs_localconfigure `Tarball))
@@ -216,7 +222,13 @@ and commit_tested branch commit =
 
     ./localconfigure
     make V=1
-    make check-release
+    if ! make check-release; then
+      for f in `find -name test-suite.log | xargs grep -l ^FAIL:`; do
+        echo \"*** $f ***\"
+        cat $f
+      done
+      exit 1
+    fi
   " repodir
     commit
     (quote (libguestfs_localconfigure `Git))