Don't use sudo in python tests
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?
Best regards
Heinrich
Quoted 11 lines · Heinrich Schuchardt
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 riskYou added sudo in
test/py/tests/test_ut.pyCan 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.
Signature · 1 line
Tom
Quoted 9 lines · Tom Rini
Quoted 8 lines · Heinrich Schuchardt
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
Quoted 8 lines
Quoted 3 lines
You added sudo in
test/py/tests/test_ut.pyCan 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.
--Sean
Quoted 12 lines · Sean Anderson
Quoted 11 lines · Tom Rini
Quoted 10 lines · Heinrich Schuchardt
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 riskYou added sudo in
test/py/tests/test_ut.py
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
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.
Signature · 1 line
Tom
Am 22. Oktober 2022 20:44:27 MESZ schrieb Sean Anderson <[email protected]>:
Quoted 12 lines · Tom Rini
Quoted 11 lines · Heinrich Schuchardt
Quoted 10 lines
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 riskYou added sudo in
test/py/tests/test_ut.py
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
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.
My experience with fusefat is that it was terribly buggy 2-3 years ago.
Last upstream source is from 2018.
Best regards
Heinrich
Quoted 2 lines
--Sean
Quoted 22 lines · Heinrich Schuchardt
Am 22. Oktober 2022 20:44:27 MESZ schrieb Sean Anderson <[email protected]>:
Quoted 19 lines · Tom Rini
Quoted 17 lines · Heinrich Schuchardt
Quoted 11 lines
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 riskYou added sudo in
test/py/tests/test_ut.pyCan 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.
Quoted 5 lines
Quoted 1 line
An easy way to do this is to use fuse2fs/fusefat.
My experience with fusefat is that it was terribly buggy 2-3 years ago.
Last upstream source is from 2018.
Yeah, I had not used it before. fuse2fs is nice. It doesn't support replaying the journal, but this doesn't matter when creating a filesystem.
mtools seems incredibly clunky, but it appears to work, and has reasonable performance.
LKL [1] seemed like it might have been the most robust solution (with lklfuse), but it hasn't made it upstream yet (and the primary author seems to have stopped trying).
--Sean