mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-31 17:10:47 +08:00
[svn-r7179] 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.
This commit is contained in:
parent
949f595f10
commit
540431b983
@ -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}
|
||||
|
10
bin/snapshot
10
bin/snapshot
@ -217,6 +217,11 @@ else
|
||||
fi
|
||||
|
||||
BASEDIR=${HOME}/snapshots-${H5VERSION}
|
||||
if [ ! -d ${BASEDIR} ]; then
|
||||
echo "BASEDIR ($BASEDIR) does not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
CURRENT=${BASEDIR}/current
|
||||
PREVIOUS=${BASEDIR}/previous
|
||||
HOSTNAME=`hostname | cut -f1 -d.` # no domain part
|
||||
@ -238,11 +243,6 @@ done
|
||||
#=============================
|
||||
if [ "$cmd" = "all" -o -n "$cmdcheckout" ]; then
|
||||
TIMESTAMP "checkout"
|
||||
# Create a working directory. Hopefully one is left over from last
|
||||
# time that still has the contents of the previous release. But if
|
||||
# not, just create one and assume that a snapshot is necessary.
|
||||
test -d ${BASEDIR} || mkdir -p ${BASEDIR} || exit 1
|
||||
|
||||
# If there is a Makefile in ${CURRENT}, the last test done in it
|
||||
# has not been distclean'ed. They would interfere with other
|
||||
# --srcdir build since make considers the files in ${CURRENT}
|
||||
|
Loading…
x
Reference in New Issue
Block a user