From 50a248d644860bae3d951187c8b0c5127044904f Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Tue, 5 Apr 2005 11:31:41 -0500 Subject: [svn-r10537] Purpose: Improvement Description: Dumping the beginning 10 lines of log files does not give much useful information and they sort of mix up with the last 30 lines. Solution: Do not dump the beginning 10 lines any more. Platforms tested: Tested by hand. --- bin/runtest | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/runtest b/bin/runtest index 120b718..2b8b107 100755 --- a/bin/runtest +++ b/bin/runtest @@ -392,13 +392,11 @@ RUNSNAPTEST() date >> $LOGFILE if [ $retcode -ne 0 ]; then # Dump the first 10 lines and the last 30 lines of the LOGFILE. - ( nhead=10; ntail=30; + ( ntail=30 echo ========================= echo "Dumping logfile of ${HOSTNAME}: $TEST_TYPE" - echo "first $nhead and last $ntail lines of $LOGFILE" + echo "Last $ntail lines of $LOGFILE" echo ========================= - head -$nhead $LOGFILE - echo "[last $ntail lines]..." tail -$ntail $LOGFILE echo ========================= echo Dumping done -- cgit v0.12