the make check output is in test-suite.log 55/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 10 Jun 2015 21:23:41 +0000 (23:23 +0200)
committerLoic Dachary <ldachary@redhat.com>
Wed, 10 Jun 2015 21:47:34 +0000 (23:47 +0200)
Searching the .trs files is not compatible with automake-1.11.

See also https://github.com/ceph/ceph/pull/4923 for more context.

Signed-off-by: Loic Dachary <loic@dachary.org>
build-ceph.sh

index 2b77255993b59d2fcb3cc3f0c900461d0a750a30..9a22a7f159e7f36ddb5510ba5738fd8d236e42e9 100755 (executable)
@@ -77,11 +77,12 @@ function get_processors() {
 
 function display_failures() {
     local dir=$1
-    find $dir -name '*.trs' | xargs grep -l FAIL | while read file ; do
-        log=$(dirname $file)/$(basename $file .trs).log
-        echo FAIL: $log
-        cat $log
-    done
+    # can be removed after hammer is retired
+    # or https://github.com/ceph/ceph/pull/4923
+    # is backported to all branches.
+    if ! test -f src/Makefile-env.am || ! grep -q VERBOSE src/Makefile-env.am ; then
+        cat src/test-suite.log
+    fi
 }
 
 make -j$(get_processors) "$@" || exit 4