travis-ci: record and skip successfully built trees
[gitweb.git] / ci / print-test-failures.sh
index 97cc0590190a19c5e13a539587ead0e73cc4e24d..4f261ddc012fb162b7d414b065fe251ceff91bee 100755 (executable)
@@ -8,6 +8,12 @@
 # Tracing executed commands would produce too much noise in the loop below.
 set +x
 
+if ! ls t/test-results/*.exit >/dev/null 2>/dev/null
+then
+       echo "Build job failed before the tests could have been run"
+       exit
+fi
+
 for TEST_EXIT in t/test-results/*.exit
 do
        if [ "$(cat "$TEST_EXIT")" != "0" ]