2018-02-14 21:13:46 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
for f in $(find . -name '*.log' -not -name 'config.log'); do
|
2018-02-16 18:22:52 +00:00
|
|
|
last=$(tail -1 $f)
|
2018-02-23 22:44:07 +00:00
|
|
|
if [[ $last = FAIL* ]]; then
|
2018-02-15 09:47:08 +00:00
|
|
|
echo '====' $f '===='
|
|
|
|
cat $f
|
2018-02-23 22:44:07 +00:00
|
|
|
elif [[ $last = PASS* ]]; then
|
|
|
|
# Do nothing.
|
|
|
|
true
|
|
|
|
else
|
|
|
|
# Travis Linux images has an old automake that does not match the
|
|
|
|
# patterns above, so in case of doubt just print the file.
|
|
|
|
cat $f
|
2018-02-15 09:47:08 +00:00
|
|
|
fi
|
2018-02-14 21:13:46 +00:00
|
|
|
done
|
2018-02-15 09:25:24 +00:00
|
|
|
|
|
|
|
exit 1
|