mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[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:
parent
9c5d3d398e
commit
50a248d644
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user