[tahoe-lafs-trac-stream] [Tahoe-LAFS] #4049: Some tests fail when run with superuser privileges
Tahoe-LAFS
trac at tahoe-lafs.org
Fri Jul 21 12:26:01 UTC 2023
#4049: Some tests fail when run with superuser privileges
---------------------+---------------------------
Reporter: exarkun | Owner:
Type: defect | Status: new
Priority: normal | Milestone: undecided
Component: unknown | Version: n/a
Keywords: | Launchpad Bug:
---------------------+---------------------------
* test_sign_bad_perms
* test_unreadable_config
* test_private_config_unreadable
* test_private_config_unreadable_preexisting
* test_write_config_unwritable_file
These all assume that the test process won't be able to read or write a
path where the associated filesystem permission bit is not set. This is
only true as long as the process isn't a superuser. If it is, it can do
what it wants and the tests fail as a result.
It's not a great idea to run Tahoe-LAFS as a superuser but nothing we do
actively _prevents_ you from doing so. Also, right now, it would be
convenient to run some of the test jobs on CI as root inside a Docker
container (otherwise we need to do an unknown amount of Docker image
hacking to make running as another user possible).
So, skip these tests if the test process is root.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/4049>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list