mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-19 16:50:46 +08:00
[svn-r10097] Purpose:
modified the output format of dumping logfile when failures have occurred.
This commit is contained in:
parent
11a9d30177
commit
a9b7b7d971
@ -393,11 +393,16 @@ RUNSNAPTEST()
|
||||
if [ $retcode -ne 0 ]; then
|
||||
# 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
|
||||
echo =========================
|
||||
echo "${HOSTNAME}: Dumping first $nhead and last $ntail lines of $LOGFILE"
|
||||
echo =========================
|
||||
head -$nhead $LOGFILE
|
||||
echo "[last $ntail lines]..."
|
||||
tail -$ntail $LOGFILE
|
||||
echo ===Dumping done===
|
||||
echo =========================
|
||||
echo Dumping done
|
||||
echo =========================
|
||||
echo ""
|
||||
) >> $FAILEDDETAIL
|
||||
fi
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user