On 6/25/19 8:26 AM, Shengjing Zhu wrote: > >>> Well, after adding this func back, the tests run and the host doesn't >>> crash. >>> >>> However the tests still can't pass in schroot, the log says: >> [...] >> >>> Short version: these tests need privileged permission. >> And your schroot doesn't provide those. How about any better container? >> How about buildds? >> > You can have privileged permission in container if you give it such > permission, like SYS_ADMIN permission, or in docker --privileged. > > But none of buildds is allowed. It's too dangerous. Only VM is suitable > for such tests. >
In docker.io we already apply a bunch of patches to disable tests that require root or that require network. Unless I'm mistaken, it's quite common to do that in debian packaging?? Even though it's not ideal, I don't know of any better solution during the package build. Then there is autopkgtest of course, but I'm not familiar with it and I don't know if it's suitable for running a test suite with full capabilities (ie. root and network).