summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHDF Admin <hdfadmin@ncsa.uiuc.edu>2001-08-27 16:01:41 (GMT)
committerHDF Admin <hdfadmin@ncsa.uiuc.edu>2001-08-27 16:01:41 (GMT)
commit4cf4a5bb852903b4991dc647b884715df6f9e19c (patch)
treeacef3d41065c9a148cf865537daed7fc37cc6a25 /bin
parent7dee9107b49c62cbab5cc0cfe2ac42f900ed1a1f (diff)
downloadhdf5-4cf4a5bb852903b4991dc647b884715df6f9e19c.zip
hdf5-4cf4a5bb852903b4991dc647b884715df6f9e19c.tar.gz
hdf5-4cf4a5bb852903b4991dc647b884715df6f9e19c.tar.bz2
[svn-r4411] Purpose:
Improved format of failures reporting. Platforms tested: eirene, premium, modi4.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/runtest19
1 files changed, 10 insertions, 9 deletions
diff --git a/bin/runtest b/bin/runtest
index f399c1f..2892457 100755
--- a/bin/runtest
+++ b/bin/runtest
@@ -123,11 +123,12 @@ REPORT_ERR()
{
ERRMSG=$1
# print it with a banner shifted right a bit
- PRINT " *************************************"
- PRINT " $ERRMSG"
- PRINT " *************************************"
+ PRINT " *************************************"
+ PRINT " `date`"
+ PRINT " $ERRMSG"
+ PRINT " *************************************"
# report it in the FAILED-LOG file too
- (date; PRINT "$ERRMSG") >> $FAILEDLOG
+ PRINT "$ERRMSG" >> $FAILEDLOG
}
#
@@ -542,7 +543,7 @@ if [ -z "$NOCVS" -a ! -f $CVSLOG ]; then
rm -f $CVSLOG_LOCK
if [ $errcode -ne 0 ]; then
# test failed.
- REPORT_ERR "****CVS checkout FAILED in $HOSTNAME****"
+ REPORT_ERR "****FAILED ${HOSTNAME}: CVS checkout****"
exit $errcode
fi
PRINT Checking MAINFEST file ...
@@ -550,7 +551,7 @@ if [ -z "$NOCVS" -a ! -f $CVSLOG ]; then
errcode=$?
if [ $errcode -ne 0 ]; then
# test failed.
- REPORT_ERR "****MANIFEST check FAILED****"
+ REPORT_ERR "****FAILED ${HOSTNAME}: MANIFEST check****"
fi
PRINT_BLANK
else
@@ -561,13 +562,13 @@ else
WAITFOR $CVSLOG 90
if [ $WAIT_STATUS -ne 0 ]; then
errcode=$WAIT_STATUS
- REPORT_ERR "****Time expired waiting CVS update to start****"
+ REPORT_ERR "****FAILED ${HOSTNAME}: Time expired waiting CVS update to start****"
exit $errcode
fi
WAITTILL $CVSLOG_LOCK 10
if [ $WAIT_STATUS -ne 0 ]; then
errcode=$WAIT_STATUS
- REPORT_ERR "****Time expired waiting CVS update to finish****"
+ REPORT_ERR "****FAILED ${HOSTNAME}: Time expired waiting CVS update to finish****"
exit $errcode
fi
fi
@@ -617,7 +618,7 @@ if [ -n "$TESTHOST" -a $HOSTNAME != "$TESTHOST" ]; then
cat $TMP_OUTPUT
# Verify test script did complete by checking the last lines
(tail -2 $TMP_OUTPUT | grep -s '^Total time' > /dev/null 2>&1) ||
- (REPORT_ERR "****snaptest FAILED to complete in $h****" &&
+ (REPORT_ERR "****FAILED ${HOSTNAME}: snaptest did not complete****" &&
PRINT_BLANK)
rm $TMP_OUTPUT
done