On Wed, May 18, 2022 at 10:37:20AM +0100, Simon McVittie wrote:
> On Wed, 18 May 2022 at 09:11:46 +0100, Julian Gilbey wrote:
> > At present, autopkgtest-build-lxc creates a container which only has
> > system users listed in /etc/passwd.  This means that
> > autopkgtest-virt-lxc runs all tests as root, which is probably not the
> > best of ideas, as it's not a "typical use" of most packages.
> 
> I think I'd prefer to solve this differently: in expendable test
> environments like lxc and qemu, we can create the user on-demand just
> before testing, rather than having to hard-wire it into the template
> container. This avoids having to guess which user is the most appropriate,
> which is something I've always been somewhat uncomfortable with: the
> answer can be "the one we created ourselves, moments ago".
> 
> https://salsa.debian.org/ci-team/autopkgtest/-/merge_requests/148 contains
> an implementation of this, but I'm currently fighting with autopkgtest's
> test suite, much of which is not routinely run and has (inevitably)
> regressed.
> 
>     smcv

Hi Simon,

Amazing thanks - that sounds like a much better solution.

Best wishes,

   Julian

Reply via email to