diff options
author | Julian Andres Klode <jak@debian.org> | 2016-08-25 15:35:32 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-08-26 22:24:24 +0200 |
commit | 757ec4e1ef633f9867928559df82adf3d0ac7b78 (patch) | |
tree | 0ee22fc38f4341154cce4fc89022672cad01937e /test/integration/test-authentication-basic | |
parent | f878d3a862128bc1385616751ae1d78246b1bd01 (diff) |
test: Use :$(id -gn) instead of :root (when run as root)
On BSD systems, the root group is wheel, not root, so let's
just use the default group here.
Gbp-Dch: ignore
Diffstat (limited to 'test/integration/test-authentication-basic')
-rwxr-xr-x | test/integration/test-authentication-basic | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/test-authentication-basic b/test/integration/test-authentication-basic index 9a15c7604..3bfd076ce 100755 --- a/test/integration/test-authentication-basic +++ b/test/integration/test-authentication-basic @@ -30,7 +30,7 @@ testauthsuccess() { # lets see if got/retains acceptable permissions if [ -n "$AUTHCONF" ]; then if [ "$(id -u)" = '0' ]; then - testfilestats "$AUTHCONF" '%U:%G:%a' '=' "_apt:root:600" + testfilestats "$AUTHCONF" '%U:%G:%a' '=' "_apt:$(id -gn):600" else testfilestats "$AUTHCONF" '%U:%G:%a' '=' "${TEST_DEFAULT_USER}:${TEST_DEFAULT_GROUP}:600" fi |