summaryrefslogtreecommitdiff
path: root/tests/test-lib.sh
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivano@gnu.org>2009-07-04 10:14:31 +0200
committerJim Meyering <meyering@redhat.com>2009-07-04 10:47:56 +0200
commit42cd6653b06e63fc36ef3f105fd37de036012e05 (patch)
treeb6de412c8a658a89da1183a148c02f1e26b28e77 /tests/test-lib.sh
parent065ce2436150a59ff9c6a2215e1651faf982ab2c (diff)
downloadcoreutils-42cd6653b06e63fc36ef3f105fd37de036012e05.tar.xz
tests: use the "nobody" user's group as the default group id
* tests/chroot/credentials: Use the group id, not its name. * tests/test-lib.sh (NON_ROOT_GROUP): Use the "nobody" user's group in place of "nogroup".
Diffstat (limited to 'tests/test-lib.sh')
-rw-r--r--tests/test-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-lib.sh b/tests/test-lib.sh
index d99e3a966..9797b552e 100644
--- a/tests/test-lib.sh
+++ b/tests/test-lib.sh
@@ -209,7 +209,7 @@ require_root_()
{
uid_is_privileged_ || skip_test_ "must be run as root"
NON_ROOT_USERNAME=${NON_ROOT_USERNAME=nobody}
- NON_ROOT_GROUP=${NON_ROOT_GROUP=nobody}
+ NON_ROOT_GROUP=${NON_ROOT_GROUP=$(id -g $NON_ROOT_USERNAME)}
}
skip_if_root_() { uid_is_privileged_ && skip_test_ "must be run as non-root"; }