t6036: add a failed conflict detection case: regular files, different modes
[git.git] / ci / print-test-failures.sh
blob4f261ddc012fb162b7d414b065fe251ceff91bee
1 #!/bin/sh
3 # Print output of failing tests
6 . ${0%/*}/lib-travisci.sh
8 # Tracing executed commands would produce too much noise in the loop below.
9 set +x
11 if ! ls t/test-results/*.exit >/dev/null 2>/dev/null
12 then
13 echo "Build job failed before the tests could have been run"
14 exit
17 for TEST_EXIT in t/test-results/*.exit
19 if [ "$(cat "$TEST_EXIT")" != "0" ]
20 then
21 TEST_OUT="${TEST_EXIT%exit}out"
22 echo "------------------------------------------------------------------------"
23 echo "$(tput setaf 1)${TEST_OUT}...$(tput sgr0)"
24 echo "------------------------------------------------------------------------"
25 cat "${TEST_OUT}"
27 done