summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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