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 11if!ls t/test-results/*.exit>/dev/null 2>/dev/null 12then 13echo"Build job failed before the tests could have been run" 14exit 15fi 16 17for TEST_EXIT in t/test-results/*.exit 18do 19if["$(cat "$TEST_EXIT")"!="0"] 20then 21 TEST_OUT="${TEST_EXIT%exit}out" 22echo"------------------------------------------------------------------------" 23echo"$(tput setaf 1)${TEST_OUT}...$(tput sgr0)" 24echo"------------------------------------------------------------------------" 25cat"${TEST_OUT}" 26fi 27done