Don't use sudo in python tests

Tom Rini trini at konsulko.com
Sat Oct 22 22:02:45 CEST 2022


On Sat, Oct 22, 2022 at 02:44:27PM -0400, Sean Anderson wrote:
> On 10/22/22 08:04, Tom Rini wrote:
> > On Sat, Oct 22, 2022 at 10:24:33AM +0200, Heinrich Schuchardt wrote:
> > > Hello Simon,
> > > 
> > > As described in doc/develop/py_testing.doc using sudo in python tests
> > > should be avoided.
> > > 
> > > * users building U-Boot may not be sudoers
> > > * running code as sudo comes with a risk
> > > 
> > > You added sudo in test/py/tests/test_ut.py
> > > 
> > > Can we use virt-make-fs here?
> > 
> > Note that virt-make-fs is only suitable for trivial cases as it's
> > otherwise too slow. This is possibly one of the cases where it's too
> > slow.
> 
> An easy way to do this is to use fuse2fs/fusefat.

I guess at this point some patches to migrate a test or two over, so we
can see how they perform, would be much appreciated.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20221022/f762960e/attachment.sig>


More information about the U-Boot mailing list