Make sure that the scratch dirs have rwx permissions before we try

a recursive rm.
This commit is contained in:
Wayne Davison
2007-05-21 02:06:51 +00:00
parent d15f2ff0cf
commit dfcb386569

View File

@@ -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