summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-03-25 03:01:37 +0000
committerMartin Pool <mbp@samba.org>2002-03-25 03:01:37 +0000
commitdfef3f1099468a3b57f69840002184c527259558 (patch)
tree9ae885f3d382b7500e689caa345fb6f8d61d7740 /testsuite
parentfa3690f48870fada1b9495dbbb16acbc1f511c52 (diff)
downloadrsync-dfef3f1099468a3b57f69840002184c527259558.tar.gz
rsync-dfef3f1099468a3b57f69840002184c527259558.tar.bz2
rsync-dfef3f1099468a3b57f69840002184c527259558.zip
Change chgrp.test to use our getgroups rather than the system's.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/chgrp.test2
-rw-r--r--testsuite/rsync.fns6
2 files changed, 6 insertions, 2 deletions
diff --git a/testsuite/chgrp.test b/testsuite/chgrp.test
index 8cc89e04..33aef146 100644
--- a/testsuite/chgrp.test
+++ b/testsuite/chgrp.test
@@ -20,7 +20,7 @@ todir="$scratchdir/to"
# TODO: I guess some systems will not have 'id', and therefore we have
# to ship or emulate it.
-mygrps="`id -G`" || fail "Can't get groups"
+mygrps="`rsync_getgroups`" || fail "Can't get groups"
mkdir "$fromdir"
for g in $mygrps
diff --git a/testsuite/rsync.fns b/testsuite/rsync.fns
index e7e2e2d7..e7f753a9 100644
--- a/testsuite/rsync.fns
+++ b/testsuite/rsync.fns
@@ -45,7 +45,11 @@ printmsg() {
rsync_ls_lR() {
- find "$@" -print | sort | xargs $TLS
+ find "$@" -print | sort | xargs "$TOOLDIR/tls"
+}
+
+rsync_getgroups() {
+ "$TOOLDIR/getgroups"
}