summaryrefslogtreecommitdiff
path: root/tests/chroot
diff options
context:
space:
mode:
Diffstat (limited to 'tests/chroot')
-rwxr-xr-xtests/chroot/credentials2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/chroot/credentials b/tests/chroot/credentials
index 58c098f53..f200f14ab 100755
--- a/tests/chroot/credentials
+++ b/tests/chroot/credentials
@@ -37,7 +37,7 @@ test "$(chroot --userspec=$NON_ROOT_USERNAME:$NON_ROOT_GROUP / whoami)" != root
|| fail=1
# Verify that there are no additional groups.
-test "$(chroot --userspec=$NON_ROOT_USERNAME:$NON_ROOT_GROUP --groups=$NON_ROOT_GROUP / id -nG)"\
+test "$(chroot --userspec=$NON_ROOT_USERNAME:$NON_ROOT_GROUP --groups=$NON_ROOT_GROUP / id -G)"\
= $NON_ROOT_GROUP || fail=1
# Verify that when specifying only the user name we get the current