tests: Don't assume uid == primary gid
authorSimon McVittie <smcv@collabora.com>
Sun, 10 Dec 2017 19:39:38 +0000 (19:39 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 2 Jan 2018 14:31:36 +0000 (14:31 +0000)
commitf63e62fbd272edbdd9695a10d841fc6b5eb69df8
tree548840786a731af6a1427f62ebc422cb5e25b988
parent8d3d14503b3105f93db635022e881e02688f2db4
tests: Don't assume uid == primary gid

Nothing guarantees that each user has a group containing only
themselves. Even if they do, nothing guarantees that its group ID
equals the user ID, particularly if another user earlier in the same
range was created without a corresponding group or vice versa.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Closes: #1390
Approved by: cgwalters
tests/test-basic-user.sh