Fixes to autopkgtest failures on Ubuntu
This MR aims to fix a couple autopkgtest failures on Ubuntu testbeds as described below:
-
We were hitting failures in the S1A test group within
debian/tests/f/firstlastuidgid.t
and indebian/tests/f/adduser_system.t
such that when a uid or gid count was incremented by one, the adduser script would create a user/group with a different uid/gid for availability reasons (e.g. expected 108 but got 109).- Solution: I changed the increment logic on those tests to go to the next available value instead by querying
getgrgid
andgetpwuid
.
- Solution: I changed the increment logic on those tests to go to the next available value instead by querying
-
On the Ubuntu autopkgtest testbed, the tests in the S4L group were yielding a warning on stderr, which was causing the test to fail:
FAIL stderr: useradd warning: s4lflugu01's uid 420 is greater than SYS_UID_MAX 413
.- Solution: I changed the test first and last uid range to 3xx instead of 4xx.