aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2008-05-18 07:00:48 -0700
committerWayne Davison <wayned@samba.org>2008-05-18 07:00:48 -0700
commit928da42359dff226f7f1fbcb36d3c150c4e95ba9 (patch)
tree1478fc3d52a818abfb6ab564af13450f9fafb5f3
parente717fa4d37bf6cad4b3117998c220478f64b2eb2 (diff)
downloadandroid_external_rsync-928da42359dff226f7f1fbcb36d3c150c4e95ba9.tar.gz
android_external_rsync-928da42359dff226f7f1fbcb36d3c150c4e95ba9.tar.bz2
android_external_rsync-928da42359dff226f7f1fbcb36d3c150c4e95ba9.zip
Fixed the "src" symlink in each testtmp subdir.
-rwxr-xr-xruntests.sh5
1 files changed, 4 insertions, 1 deletions
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
}