diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-09-14 13:04:22 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-09-14 13:04:24 +0100 |
commit | 396b5dc1a091ac4ae12432575e1cb7431d68a2c1 (patch) | |
tree | b6576148977923b4b3be8167468374d0750dcd5c | |
parent | e08ab163a3006d50f930f0c36aaab9ec4b87b917 (diff) |
common: Trim stdout failure reports
Report only the last 100 lines of a failure log. The rest is available
in the log file, and is e-mailed in full as a report.
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rwxr-xr-x | common.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -87,7 +87,7 @@ pass_fail() { if [ "$1" -ne 0 ]; then echo " $2: *** Failed ***" if [ -e $logfile ]; then - cat $logfile; + tail -n 100 $logfile; fi notify_failures "$2" "$logfile" exit "$1" |