1#!/bin/bash 2 3for f in $(find . -name '*.log' -not -name 'config.log'); do 4 last=$(tail -1 $f) 5 if [[ $last = FAIL* ]]; then 6 echo '====' $f '====' 7 cat $f 8 elif [[ $last = PASS* ]]; then 9 # Do nothing. 10 true 11 else 12 # Travis Linux images has an old automake that does not match the 13 # patterns above, so in case of doubt just print the file. 14 cat $f 15 fi 16done 17 18exit 1 19