summaryrefslogtreecommitdiffstats
path: root/bin/runtest
diff options
context:
space:
mode:
Diffstat (limited to 'bin/runtest')
-rwxr-xr-xbin/runtest7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/runtest b/bin/runtest
index 39b89c2..330eb7d 100755
--- a/bin/runtest
+++ b/bin/runtest
@@ -553,8 +553,13 @@ fi
#################################
# Setup snapshot test directories
#################################
+BASEDIR=${HOME}/snapshots-${H5VERSION}
+if [ ! -d ${BASEDIR} ]; then
+ echo "BASEDIR ($BASEDIR) does not exist"
+ exit 1
+fi
# Show the real physical path rather than the symbolic path
-SNAPYARD=`cd $HOME/snapshots-${H5VERSION} && /bin/pwd`
+SNAPYARD=`cd $BASEDIR && /bin/pwd`
# Log file basename
LOGBASENAME=${SNAPYARD}/log/${HOSTNAME}
PASSEDLOG=${SNAPYARD}/log/PASSED_LOG_${TODAY}