summaryrefslogtreecommitdiffstats
path: root/bin/runtest
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-04-19 04:04:16 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-04-19 04:04:16 (GMT)
commitd8a499cd874170d95e1c034e62533b58693e349c (patch)
treefdc9ff9a0812811413485771e48de122a79790ec /bin/runtest
parent4e658948452327747f0add5d016cd57644996426 (diff)
downloadhdf5-d8a499cd874170d95e1c034e62533b58693e349c.zip
hdf5-d8a499cd874170d95e1c034e62533b58693e349c.tar.gz
hdf5-d8a499cd874170d95e1c034e62533b58693e349c.tar.bz2
[svn-r8386] Purpose:
Bug fix. Description: LOGFILE was showing both hostname and srcdirname when srcdirname is used. Fixed it. Platforms tested: Tested in LANL QSC.
Diffstat (limited to 'bin/runtest')
-rwxr-xr-xbin/runtest8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/runtest b/bin/runtest
index edbdf22..f333eb2 100755
--- a/bin/runtest
+++ b/bin/runtest
@@ -262,7 +262,7 @@ WAITTILL()
RUNSNAPTEST()
{
SNAPCMD_OPT="$STANDARD_OPT" # snapshot test option
- SRCDIRNAME=""
+ SRCDIRNAME=${HOSTNAME}
# restore CC, PATH in case they were changed in the last test.
CC="$CC_SAVED"
PATH=$PATH_SAVED
@@ -333,6 +333,8 @@ RUNSNAPTEST()
skiptest=yes
;;
srcdirname)
+ # Use this before using parallel and -n32 since this overrides
+ # the others.
shift
SRCDIRNAME=$1
;;
@@ -367,7 +369,7 @@ RUNSNAPTEST()
# Setup log file name to save test output
THIS_MINUTE=`date +%H%M`
- LOGFILE=${LOGBASENAME}${SRCDIRNAME}_${TODAY}_${THIS_MINUTE}
+ LOGFILE=${LOGBASENAME}/${SRCDIRNAME}_${TODAY}_${THIS_MINUTE}
PRINT "Running snapshot with output saved in"
PRINT " $LOGFILE"
(date; PRINT Hostname=$HOSTNAME) >> $LOGFILE
@@ -606,7 +608,7 @@ fi
SNAPYARD=`cd $BASEDIR && /bin/pwd`
# Log file basename
LOGDIR=${SNAPYARD}/log
-LOGBASENAME=${LOGDIR}/${HOSTNAME}
+LOGBASENAME=${LOGDIR}
PASSEDLOG=${LOGDIR}/PASSED_LOG_${TODAY}
FAILEDLOG=${LOGDIR}/FAILED_LOG_${TODAY}
SKIPPEDLOG=${LOGDIR}/SKIPPED_LOG_${TODAY}