summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2021-09-14 13:04:22 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-09-14 13:04:24 +0100
commit396b5dc1a091ac4ae12432575e1cb7431d68a2c1 (patch)
treeb6576148977923b4b3be8167468374d0750dcd5c
parente08ab163a3006d50f930f0c36aaab9ec4b87b917 (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-xcommon.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.sh b/common.sh
index c217021..b279abc 100755
--- a/common.sh
+++ b/common.sh
@@ -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"