Control: retitle -1 test lib function to yield a conflict-free user/group name

On Thu, Jul 21, 2022 at 08:27:15AM +0200, Marc Haber wrote:
> The tests expect the test environment to be fresh. They relay too much
> on uids being the same and do not preseed adduser to provide
> reproducible uids.

In the mean time, we have gotten rid of hardcoded "dumb" user names like 
"foo" inside the tests.

To be able to run in arbitrarily broken test environments, our test 
library might grow a function "get_new_name" based on its string 
argument and returning a string resembling the argument but postfixed in 
a way that both corresponding user and group names are free. That way 
our tests could run without ever having a conflict.

Greetings
Marc

Reply via email to