aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}