From e4e37e6d4aed05c4d6358907dc71470194310f42 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 3 Dec 2003 12:09:21 -0500 Subject: [svn-r7910] Purpose: feature Description: -setup now also sets up or updates the current source directory. Platforms tested: LANL Theta. Misc. update: --- bin/runtest | 9 +++++++-- 1 file 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 -- cgit v0.12