[Toybox] [PATCH] tar.test: fix the tests when run as root.

enh enh at google.com
Thu Sep 1 16:00:33 PDT 2022


Afaik, I'm the only person regularly running the toybox tests as
root (in Android's CI), so I haven't actually fixed the character
special and block special tests for macOS here --- I've fixed them
so they work again on Android and Linux, and am just assuming we'll
"skipnot" them on macOS. The first person to want to run the tests
as root on macOS can fix this more thoroughly.

Also use a consistent group as well as user for the "ownership"
test.

With this patch, the tests still pass on Linux and macOS but also
pass as root on Android.
---
 tests/tar.test | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20220901/4d7d03f2/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-tar.test-fix-the-tests-when-run-as-root.patch
Type: application/octet-stream
Size: 1884 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20220901/4d7d03f2/attachment.obj>


More information about the Toybox mailing list