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 2eb4182d0638b161017d09f3ae1a646d1ef22232..41d566bf0c617d07cbf1e4c1e0eb7598366e39fa 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
 }