ci / print-test-failures.shon commit Merge branch 'maint' of git://github.com/git-l10n/git-po (69f8d44)
   1#!/bin/sh
   2#
   3# Print output of failing tests
   4#
   5
   6. ${0%/*}/lib-travisci.sh
   7
   8for TEST_EXIT in t/test-results/*.exit
   9do
  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
  18done