[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.
This commit is contained in:
Albert Cheng 2005-04-05 11:31:41 -05:00
parent 9c5d3d398e
commit 50a248d644

View File

@ -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