Fix the chgrp and hardlinks tests by running $RSYNC instead of relying on the
authorJos Backus <jos@samba.org>
Tue, 5 Nov 2002 18:35:59 +0000 (18:35 +0000)
committerJos Backus <jos@samba.org>
Tue, 5 Nov 2002 18:35:59 +0000 (18:35 +0000)
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 <ShprentzJ@nima.mil>

testsuite/chgrp.test
testsuite/hardlinks.test

index 33aef14..cabe4ef 100644 (file)
@@ -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
index 3405f15..025974d 100644 (file)
@@ -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