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)
|
|
|
|
if [[ $last = FAIL* || $last = *failed* ]]; then
|
2018-02-15 10:47:08 +01:00
|
|
|
echo '====' $f '===='
|
|
|
|
cat $f
|
|
|
|
fi
|
2018-02-14 22:13:46 +01:00
|
|
|
done
|
2018-02-15 10:25:24 +01:00
|
|
|
|
|
|
|
# Intentionally exiting with non-zero.
|
|
|
|
exit 1
|