summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/runtest11
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/runtest b/bin/runtest
index f188cad..d4a75e7 100755
--- a/bin/runtest
+++ b/bin/runtest
@@ -391,9 +391,14 @@ RUNSNAPTEST()
date >> $LOGFILE
if [ $retcode -ne 0 ]; then
- echo FAILED in $LOGFILE >> $FAILEDDETAIL
- else
- echo PASSED in $LOGFILE >> $FAILEDDETAIL
+ # Dump the first 10 lines and the last 30 lines of the LOGFILE.
+ ( nhead=10; ntail=30;
+ echo ===Dumping first $nhead and last $ntail lines of $LOGFILE
+ head -$nhead $LOGFILE
+ echo "[last $ntail lines]..."
+ tail -$ntail $LOGFILE
+ echo ===Dumping done===
+ ) >> $FAILEDDETAIL
fi
}