Commit b214eda4 authored by Martin Pool's avatar Martin Pool

Clean scratch directory between each test run.

parent 0771727d
......@@ -160,16 +160,18 @@ missing=0
passed=0
failed=0
scratchdir=./testtmp
[ -d "$scratchdir" ] && rm -r "$scratchdir"
mkdir "$scratchdir"
scratchdir=`cd $scratchdir && pwd`
scratchdir="`cd ./testtmp && pwd`"
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,6 +182,7 @@ do
testbase=`echo $testscript | sed 's!.*/!!'`
echo "----- $testbase starting"
clean_scratch
if sh $RUNSHFLAGS "$testscript"
then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment