From eac9dc63e38cad062bde3b8903ca776531b344f1 Mon Sep 17 00:00:00 2001 From: Jos Backus Date: Tue, 5 Nov 2002 18:35:59 +0000 Subject: [PATCH] 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 --- testsuite/chgrp.test | 2 +- testsuite/hardlinks.test | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.34.1