ci / print-test-failures.shon commit travis-ci: skip a branch build if equal tag is present (09f5e97)
   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
   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
  18done