X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/4b24f4a2b5f400047d58d2c815dce627bfc58413..a21e72c3e652774e5b3468fd1c9ce7ca64f5aa33:/runtests.sh diff --git a/runtests.sh b/runtests.sh index 62675770..ad93862c 100755 --- a/runtests.sh +++ b/runtests.sh @@ -221,11 +221,12 @@ 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 chmod g-s "$scratchdir" + ln -s "$srcdir" "$scratchdir/src" return 0 }