tests: Don't assume uid == primary gid
authorSimon McVittie <smcv@collabora.com>
Sun, 10 Dec 2017 19:39:38 +0000 (19:39 +0000)
committerSimon McVittie <smcv@debian.org>
Thu, 4 Jan 2018 19:26:16 +0000 (19:26 +0000)
commitea7f191cfe2cff65d879d124016ccb2f59f1d2a4
tree183db01e5bd82e4de69684bcd29870a55b360b13
parent5a76658caed11e21b7697fbe9d60106b6d195ea3
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>
Forwarded: https://github.com/ostreedev/ostree/pull/1390
Applied-upstream: 2018.1, commit:https://github.com/ostreedev/ostree/commit/f63e62fbd272edbdd9695a10d841fc6b5eb69df8

Gbp-Pq: Topic 2018.1
Gbp-Pq: Name tests-Don-t-assume-uid-primary-gid.patch
tests/test-basic-user.sh