-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_bad_stdout_specs vs writeable / #3160
Comments
Hello @benclifford |
this issue was also encountered in a container running flux, see issue #3159, so i changed the title away from WSL |
a possible approach to fixing this test: the test needs a directory that cannot be written. the assumption so far (which is wrong) is that a different way to get such a directory would be to use the I'm not sure how that would fit into the way that the test is laid out - it might be better to move the non-writeable directory test out of the |
the approach I wrote in the immediately preceeding message does not work when running as root, because permissions are not enforced for root at all - in the case of #3159 @mercybassey tried out this approach inside a flux-provided container running as root, for example. So something more interesting needs to happen to make this test either pass or be controllably skipped. |
PR #3483 adds a |
Describe the bug
One of our Outreachy participants, @SobiaAman, discovered that on WSL2, this test fails for them in
make test
:This test assumes that
/
is not writeable and a permissions error can be tested by attempting to write to/
.This is not true in this user's case (and I have over the years experienced other unix environments where / is writeable, such as single-user-targeted OS X laptops).
To Reproduce
Run this test in an environment where
/
is writeable - for example, in a suitably disposable fileystem image,chmod a+w /
and then run the test suite.Expected behavior
This test should not be reliant on configuration of the
/
directory of the hosting environment.Environment
WSL2
Recreateable in my containerized linux dev environment
The text was updated successfully, but these errors were encountered: