97cc0590190a19c5e13a539587ead0e73cc4e24d
1#!/bin/sh
2#
3# Print output of failing tests
4#
5
6. ${0%/*}/lib-travisci.sh
7
8# Tracing executed commands would produce too much noise in the loop below.
9set +x
10
11for TEST_EXIT in t/test-results/*.exit
12do
13 if [ "$(cat "$TEST_EXIT")" != "0" ]
14 then
15 TEST_OUT="${TEST_EXIT%exit}out"
16 echo "------------------------------------------------------------------------"
17 echo "$(tput setaf 1)${TEST_OUT}...$(tput sgr0)"
18 echo "------------------------------------------------------------------------"
19 cat "${TEST_OUT}"
20 fi
21done