2018-02-14 22:13:46 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
for f in $(find . -name '*.log' -not -name 'config.log'); do
|
2018-02-16 19:22:52 +01:00
|
|
|
last=$(tail -1 $f)
|
2018-02-23 23:44:07 +01:00
|
|
|
if [[ $last = FAIL* ]]; then
|
2018-02-15 10:47:08 +01:00
|
|
|
echo '====' $f '===='
|
|
|
|
cat $f
|
2018-02-23 23:44:07 +01: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 10:47:08 +01:00
|
|
|
fi
|
2018-02-14 22:13:46 +01:00
|
|
|
done
|
2018-02-15 10:25:24 +01:00
|
|
|
|
|
|
|
exit 1
|