From: Wayne Davison Date: Tue, 18 May 2004 00:41:35 +0000 (+0000) Subject: - Use $suitedir to find rsync.fns. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/b0e9bafc78e066b1d67c07c8f9c022a4c900ed27 - Use $suitedir to find rsync.fns. - The values of fromdir and todir are already set. --- diff --git a/testsuite/chgrp.test b/testsuite/chgrp.test index 6c7bb606..12ffa415 100644 --- a/testsuite/chgrp.test +++ b/testsuite/chgrp.test @@ -9,15 +9,12 @@ # the test is a member of them. Hopefully they're in at least one # test. -. $srcdir/testsuite/rsync.fns +. "$suitedir/rsync.fns" set -x # Build some hardlinks -fromdir="$scratchdir/from" -todir="$scratchdir/to" - mygrps="`rsync_getgroups`" || fail "Can't get groups" mkdir "$fromdir" diff --git a/testsuite/chown.test b/testsuite/chown.test index 2291eca5..755ffdf8 100644 --- a/testsuite/chown.test +++ b/testsuite/chown.test @@ -11,15 +11,12 @@ # We don't know what users will be present on this system, so we just # use random numeric uids and gids. -. $srcdir/testsuite/rsync.fns +. "$suitedir/rsync.fns" set -x # Build some hardlinks -fromdir="$scratchdir/from" -todir="$scratchdir/to" - mkdir "$fromdir" name1="$fromdir/name1" name2="$fromdir/name2" diff --git a/testsuite/devices.test b/testsuite/devices.test index 04b9e6a6..ed84fb48 100644 --- a/testsuite/devices.test +++ b/testsuite/devices.test @@ -7,15 +7,12 @@ # Test rsync handling of devices. This can only run if you're root. -. $srcdir/testsuite/rsync.fns +. "$suitedir/rsync.fns" set -x # Build some hardlinks -fromdir="$scratchdir/from" -todir="$scratchdir/to" - case `id -u` in '') ;; # If "id" failed, try to continue... 0) ;; diff --git a/testsuite/duplicates.test b/testsuite/duplicates.test index 9b1a24ce..23d2994e 100644 --- a/testsuite/duplicates.test +++ b/testsuite/duplicates.test @@ -19,15 +19,12 @@ # This test is not great, because it is a timing-dependent bug. -. $srcdir/testsuite/rsync.fns +. "$suitedir/rsync.fns" set -x # Build some hardlinks -fromdir="$scratchdir/from" -todir="$scratchdir/to" - mkdir "$fromdir" name1="$fromdir/name1" name2="$fromdir/name2"