Imported Upstream version 2.14.3
[platform/upstream/git.git] / ci / print-test-failures.sh
1 #!/bin/sh
2 #
3 # Print output of failing tests
4 #
5
6 . ${0%/*}/lib-travisci.sh
7
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}"
17         fi
18 done