Code

t/coverage.sh: Output the content of t/test-suite.log in case of a failure.
[sysdb.git] / t / coverage.sh
index bb766427234e5c53513b5fd0d434cebfcd3b1b4a..a689b571156166dc7a90bb972d7817153d23a4d9 100755 (executable)
@@ -49,7 +49,8 @@ touch configure.ac && make configure
 make
 
 lcov --base-directory src --directory src --zerocount
-make test
+make test || (status=$?; cat t/test-suite.log 2> /dev/null; exit $status)
+
 # old versions of lcov don't support --no-external
 lcov --base-directory src --directory src --no-external \
        --capture -o sysdb_coverage.info \