summaryrefslogtreecommitdiffstats
path: root/bin/runtest
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2003-12-03 17:09:21 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2003-12-03 17:09:21 (GMT)
commite4e37e6d4aed05c4d6358907dc71470194310f42 (patch)
tree0f429d22f64e3eb67ee6a94edaeaafa1823a67d1 /bin/runtest
parente08726c2ad57fde24f06ecbf73fa48152c4143b3 (diff)
downloadhdf5-e4e37e6d4aed05c4d6358907dc71470194310f42.zip
hdf5-e4e37e6d4aed05c4d6358907dc71470194310f42.tar.gz
hdf5-e4e37e6d4aed05c4d6358907dc71470194310f42.tar.bz2
[svn-r7910] Purpose:
feature Description: -setup now also sets up or updates the current source directory. Platforms tested: LANL Theta. Misc. update:
Diffstat (limited to 'bin/runtest')
-rwxr-xr-xbin/runtest9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/runtest b/bin/runtest
index 129c3da..db7cc33 100755
--- a/bin/runtest
+++ b/bin/runtest
@@ -637,9 +637,14 @@ if test x-$CMD = x-setup; then
test $errcode -ne 0 && exit 1
# create empty test hosts or configure files if non-existing
for f in $ALLHOSTSFILE $SNAPTESTCFG; do
- echo Creating $f
- touch $f
+ if test ! -f $f; then
+ echo Creating $f
+ touch $f
+ fi
done
+ # create or update the current source.
+ echo update current source
+ $SNAPSHOT checkout
# setup completed. Exit.
exit 0
fi