Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0771727
)
Clean scratch directory between each test run.
author
Martin Pool
<mbp@samba.org>
Fri, 14 Dec 2001 01:52:43 +0000
(
01:52
+0000)
committer
Martin Pool
<mbp@samba.org>
Fri, 14 Dec 2001 01:52:43 +0000
(
01:52
+0000)
runtests.sh
patch
|
blob
|
blame
|
history
diff --git
a/runtests.sh
b/runtests.sh
index
8c3222f
..
afa66f4
100755
(executable)
--- a/
runtests.sh
+++ b/
runtests.sh
@@
-160,16
+160,18
@@
missing=0
passed=0
failed=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
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"
if [ "x$whichtests" = x ]
then
whichtests="*.test"
@@
-180,6
+182,7
@@
do
testbase=`echo $testscript | sed 's!.*/!!'`
echo "----- $testbase starting"
testbase=`echo $testscript | sed 's!.*/!!'`
echo "----- $testbase starting"
+ clean_scratch
if sh $RUNSHFLAGS "$testscript"
then
if sh $RUNSHFLAGS "$testscript"
then