Make sure that the scratch dirs have rwx permissions before we try
authorWayne Davison <wayned@samba.org>
Mon, 21 May 2007 02:06:51 +0000 (02:06 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 21 May 2007 02:06:51 +0000 (02:06 +0000)
a recursive rm.

runtests.sh

index 286f0c5..ad93862 100755 (executable)
@@ -221,7 +221,7 @@ suitedir="$srcdir/testsuite"
 export scratchdir suitedir
 
 prep_scratch() {
-    [ -d "$scratchdir" ] && rm -rf "$scratchdir"
+    [ -d "$scratchdir" ] && chmod -R u+rwX "$scratchdir" && rm -rf "$scratchdir"
     mkdir "$scratchdir"
     # Get rid of default ACLs and dir-setgid to avoid confusing some tests.
     $setfacl_nodef "$scratchdir" || true