Merge branch 'prevent-name-squatting-on-windows'
[git/debian.git] / ci / print-test-failures.sh
blob8c8973cbf365ed18c1a20b81ec2bcd4a873f62b7
1 #!/bin/sh
3 # Print output of failing tests
6 . ${0%/*}/lib-travisci.sh
8 for TEST_EXIT in t/test-results/*.exit
9 do
10 if [ "$(cat "$TEST_EXIT")" != "0" ]
11 then
12 TEST_OUT="${TEST_EXIT%exit}out"
13 echo "------------------------------------------------------------------------"
14 echo "$(tput setaf 1)${TEST_OUT}...$(tput sgr0)"
15 echo "------------------------------------------------------------------------"
16 cat "${TEST_OUT}"
18 done