From: Wayne Davison Date: Sun, 18 May 2008 14:00:48 +0000 (-0700) Subject: Fixed the "src" symlink in each testtmp subdir. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/928da42359dff226f7f1fbcb36d3c150c4e95ba9 Fixed the "src" symlink in each testtmp subdir. --- diff --git a/runtests.sh b/runtests.sh index 2eb4182d..41d566bf 100755 --- a/runtests.sh +++ b/runtests.sh @@ -238,7 +238,10 @@ prep_scratch() { # 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" + case "$srcdir" in + /*) ln -s "$srcdir" "$scratchdir/src" ;; + *) ln -s "$TOOLDIR/$srcdir" "$scratchdir/src" ;; + esac return 0 }