]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
tests: display tests/test-suite.log on errors
authorVincent Bernat <vincent@bernat.ch>
Thu, 12 Mar 2020 10:54:34 +0000 (11:54 +0100)
committerVincent Bernat <vincent@bernat.ch>
Thu, 12 Mar 2020 10:54:34 +0000 (11:54 +0100)
tests/ci/run.sh

index 01f6f1a09b7551d61c383bebfbd9bcb902fa3527..c9d88091865ee33887b5872561b3daa47dd1aa59 100755 (executable)
@@ -21,7 +21,10 @@ esac
     exit 1
 }
 make all ${MAKE_ARGS-CFLAGS=-Werror} || make all ${MAKE_ARGS-CFLAGS=-Werror} V=1
-make check ${MAKE_ARGS-CFLAGS=-Werror}
+make check ${MAKE_ARGS-CFLAGS=-Werror} || {
+    [ ! -f tests/test-suite.log ] || cat tests/test-suite.log
+    exit 1
+}
 make distcheck
 
 case "$(uname -s)" in