Fixed the "src" symlink in each testtmp subdir.
authorWayne Davison <wayned@samba.org>
Sun, 18 May 2008 14:00:48 +0000 (07:00 -0700)
committerWayne Davison <wayned@samba.org>
Sun, 18 May 2008 14:00:48 +0000 (07:00 -0700)
runtests.sh

index 2eb4182..41d566b 100755 (executable)
@@ -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
 }