X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/f7ca98bdc47f30fef67b6c232a88af7e6c44ac5e..514d129c494e614f3d7a0df53368479deebfecaa:/runtests.sh diff --git a/runtests.sh b/runtests.sh index d6a9a482..522b096d 100755 --- a/runtests.sh +++ b/runtests.sh @@ -160,16 +160,18 @@ missing=0 passed=0 failed=0 -scratchdir=./testtmp -[ -d "$scratchdir" ] && rm -r "$scratchdir" -mkdir "$scratchdir" -scratchdir=`cd $scratchdir && pwd` +scratchdir="`pwd`"/testtmp echo " scratchdir=$scratchdir" suitedir="$srcdir/testsuite" export scratchdir suitedir +clean_scratch() { + [ -d "$scratchdir" ] && rm -rf "$scratchdir" + mkdir "$scratchdir" +} + if [ "x$whichtests" = x ] then whichtests="*.test" @@ -180,10 +182,11 @@ do testbase=`echo $testscript | sed 's!.*/!!'` echo "----- $testbase starting" + clean_scratch if sh $RUNSHFLAGS "$testscript" then - echo "----- $testbase completed succesfully" + echo "----- $testbase completed successfully" passed=`expr $passed + 1` else case $? in