]> scripts.mit.edu Git - wizard.git/blobdiff - tests/setup
Move wizard.scripts module to plugins, added hooks accordingly.
[wizard.git] / tests / setup
index bac28b43c24be0ad39af0fc8fbc43bdd2ef1a741..edf6db9b929d7bf0ab05c11495d659d97486d220 100644 (file)
@@ -4,6 +4,8 @@
 #   TESTNAME = name of the test
 # we produce $TESTDIR and $TESTID for config and test script to use.
 
+export PATH="`pwd`/../bin:$PATH"
+
 VERSION="$1"
 if [ "$VERSION" == "" ]; then
     if [ "$DEFAULT_HEAD" == "1" ]; then
@@ -31,6 +33,6 @@ fi
 
 if [ -e "$TESTDIR" ]; then
     echo "Removing previous $TESTDIR folder..."
-    rm -Rf "$TESTDIR"
+    wizard remove "$TESTDIR" || rm -Rf "$TESTDIR"
 fi