diff options
author | HDF Admin <hdfadmin@ncsa.uiuc.edu> | 2003-07-07 16:56:39 (GMT) |
---|---|---|
committer | HDF Admin <hdfadmin@ncsa.uiuc.edu> | 2003-07-07 16:56:39 (GMT) |
commit | cdee39002db5fec2931d95ce6fbb98cb8d72408c (patch) | |
tree | 938fdbf196bee144c7bc4ba716dea1609c613730 /bin/runtest | |
parent | 58e0f63a3c29a36cec5b0df3fe526c0303572444 (diff) | |
download | hdf5-cdee39002db5fec2931d95ce6fbb98cb8d72408c.zip hdf5-cdee39002db5fec2931d95ce6fbb98cb8d72408c.tar.gz hdf5-cdee39002db5fec2931d95ce6fbb98cb8d72408c.tar.bz2 |
[svn-r7178] Purpose:
Bug fix
Description:
If the base directory (.../snapshot-...) does not exist yet,
the runtest and snapshot will continue on till it bumped into
a "wall".
Solution:
Added verification that the BASEDIR does exist.
Misc. update:
Diffstat (limited to 'bin/runtest')
-rwxr-xr-x | bin/runtest | 7 |
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} |