From: Richard W.M. Jones Date: Tue, 17 Oct 2017 17:59:45 +0000 (+0100) Subject: libguestfs: Print failures. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=36e5fc1cbee24e2a4d1dbda12b4b3eaae4fb9230;hp=855154e05f432914715cf620264876213e5dfa1d;p=goaljobs-goals.git libguestfs: Print failures. If ‘make check-release’ fails, then find all the test-suite.log files containing the failures and print them in full. --- diff --git a/libguestfs_upstream.ml b/libguestfs_upstream.ml index b1daa19..4472f4c 100644 --- a/libguestfs_upstream.ml +++ b/libguestfs_upstream.ml @@ -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))