-
Notifications
You must be signed in to change notification settings - Fork 433
Ignore tests that touch the filesystem if sandboxed. #946
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
Conversation
|
I think using an |
|
I wish there was a way to make ignore configurable with envvars or something. I'm fine with this, however I'd prefer it to be not ignored unconditionally. A runtime skip maybe? |
Sure, we could look for |
|
Ok I've added a check for |
|
worst case for that, just pass |
|
@otavio I've added the |
Adds an environment variable `CROSS_SANDBOXED` that skips tests that touch the filesystem if set.
|
@otavio Does this look good? Does the use of an environment variable work for you, since this is quite a useful test to ensure our mount paths are correct? |
|
It should work; I cannot try it today but will do once I have an opportunity. |
otavio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can merge this and I handle this in NixOS side.
|
bors r=Emilgardis,otavio |
|
Build succeeded: |
Adds an environment variable
CROSS_SANDBOXEDthat skips tests that touch the filesystem if set.Closes #943.