]> git.ipfire.org Git - thirdparty/systemd.git/commit
mkosi: Unify environment for unit tests
authorMichal Koutný <mkoutny@suse.com>
Tue, 21 Apr 2020 23:58:44 +0000 (01:58 +0200)
committerMichal Koutný <mkoutny@suse.com>
Wed, 22 Apr 2020 08:35:12 +0000 (10:35 +0200)
commitff5499824f96a7e7b93ca0b294eec62ad21e6592
tree477ba72a6b60461e600b3cf729853ce82188f5b2
parent9acb2964d7798813274dbd5992fb6f370add23b9
mkosi: Unify environment for unit tests

Some testcases in test-execute rely on existence of user groups with
certain gids. However, their existence is not universally granted [1].
Although the test could be skipped in their absence and give up testing
some code paths, different approach was chosen -- create dummy groups in
the testing image.

[1] See how systemd-sysusers allocates gids (e.g.
src/test/test-uid-range.c).
mkosi.build