summaryrefslogtreecommitdiffstats
path: root/bin/runtest
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-02-24 22:12:10 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-02-24 22:12:10 (GMT)
commitb67493fcda5ffe9f51b65ee95ca23714b7d9a555 (patch)
treef2d7fb428d5161d644d9f8a668b07453715f8011 /bin/runtest
parent2be0f58f6018d3ccf4e9929aa3f4cbd3c593624a (diff)
downloadhdf5-b67493fcda5ffe9f51b65ee95ca23714b7d9a555.zip
hdf5-b67493fcda5ffe9f51b65ee95ca23714b7d9a555.tar.gz
hdf5-b67493fcda5ffe9f51b65ee95ca23714b7d9a555.tar.bz2
[svn-r10080] Purpose:
Feature Description: Added code to dump the beginnng and last few lines of the test log file if errors have occurred. Platforms tested: Tested the code itself separatedly but daily test is where it is really tested. Should work.
Diffstat (limited to 'bin/runtest')
-rwxr-xr-xbin/runtest11
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/runtest b/bin/runtest
index f188cad..d4a75e7 100755
--- a/bin/runtest
+++ b/bin/runtest
@@ -391,9 +391,14 @@ RUNSNAPTEST()
date >> $LOGFILE
if [ $retcode -ne 0 ]; then
- echo FAILED in $LOGFILE >> $FAILEDDETAIL
- else
- echo PASSED in $LOGFILE >> $FAILEDDETAIL
+ # 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
+ head -$nhead $LOGFILE
+ echo "[last $ntail lines]..."
+ tail -$ntail $LOGFILE
+ echo ===Dumping done===
+ ) >> $FAILEDDETAIL
fi
}