From a9b7b7d971cc714e09647794a2d688463c507666 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Sat, 26 Feb 2005 16:41:16 -0500 Subject: [svn-r10097] Purpose: modified the output format of dumping logfile when failures have occurred. --- bin/runtest | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/runtest b/bin/runtest index d4a75e7..efcb694 100755 --- a/bin/runtest +++ b/bin/runtest @@ -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 } -- cgit v0.12