]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Use group-names.
authorJim Meyering <jim@meyering.net>
Sat, 16 Dec 2000 09:23:10 +0000 (09:23 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 16 Dec 2000 09:23:10 +0000 (09:23 +0000)
tests/chgrp/deref
tests/chgrp/recurse

index 938c1cb8d2e6d27abab0814056dd959f893e11b9..afe7b465a49a33f8f6ae2fb5f986aa9f7595a10c 100755 (executable)
@@ -6,6 +6,8 @@ if test "$VERBOSE" = yes; then
   chgrp --version
 fi
 
+. $srcdir/../group-names
+
 pwd=`pwd`
 tmp=slink.$$
 trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
@@ -20,17 +22,6 @@ if test $framework_failure = 1; then
   (exit 1); exit
 fi
 
-groups=`id -nG 2>/dev/null`
-case "$groups" in
-  *' '*) ;;
-  *) cat <<EOF 1>&2
-$0: this test requires that you be a member of more than one group,
-but running \`id -nG' either failed or found just one.
-EOF
-     (exit 77); exit
-     ;;
-esac
-
 set _ $groups; shift
 g1=$1
 g2=$2
index 5e0c8995f4c7798368e67972a070b5b163d99fec..d1d70248c5ec0e5e9aabbd77deb022d2de82e262 100755 (executable)
@@ -6,6 +6,8 @@ if test "$VERBOSE" = yes; then
   chgrp --version
 fi
 
+. $srcdir/../group-names
+
 pwd=`pwd`
 tmp=slink.$$
 trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
@@ -20,17 +22,6 @@ if test $framework_failure = 1; then
   (exit 1); exit
 fi
 
-groups=`id -nG 2>/dev/null`
-case "$groups" in
-  *' '*) ;;
-  *) cat <<EOF 1>&2
-$0: this test requires that you be a member of more than one group,
-but running \`id -nG' either failed or found just one.
-EOF
-     (exit 77); exit
-     ;;
-esac
-
 set _ $groups; shift
 g1=$1
 g2=$2