From: Jos Backus Date: Tue, 5 Nov 2002 18:35:59 +0000 (+0000) Subject: Fix the chgrp and hardlinks tests by running $RSYNC instead of relying on the X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/eac9dc63e38cad062bde3b8903ca776531b344f1 Fix the chgrp and hardlinks tests by running $RSYNC instead of relying on the new rsync being in $PATH; it may pick up an old version, invalidating the result of the tests. This is what the other tests do already. Submitted by: Joel Shprentz --- diff --git a/testsuite/chgrp.test b/testsuite/chgrp.test index 33aef146..cabe4ef6 100644 --- a/testsuite/chgrp.test +++ b/testsuite/chgrp.test @@ -31,7 +31,7 @@ do done sleep 2 -checkit "rsync -rtgvvv \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" +checkit "$RSYNC -rtgvvv \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" exit 0 # last [] may have failed but if we get here then we've won diff --git a/testsuite/hardlinks.test b/testsuite/hardlinks.test index 3405f15e..025974d7 100644 --- a/testsuite/hardlinks.test +++ b/testsuite/hardlinks.test @@ -31,7 +31,7 @@ ln "$name1" "$name2" || fail "Can't create hardlink" ln "$name2" "$name3" || fail "Can't create hardlink" cp "$name2" "$name4" || fail "Can't copy file" -checkit "rsync -aHvv \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" +checkit "$RSYNC -aHvv \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" exit 0 # last [] may have failed but if we get here then we've won