-
Notifications
You must be signed in to change notification settings - Fork 345
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
fix TestPermissionDenied should ignore darwin #2561
Conversation
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 do expect an error there. More exactly a "permission denied" error as we are trying to access /root
with no permission for it. We can work on refactoring the whole test and instead creating a real file with root permissions in another directory. The goal of the test is to fail (and not panic) with a permission denied error.
Originally i opened that PR. But in the end they were arguing on thing i didn't see on our repo.. |
Yeah, I think the problem is caused by how the CI is building the application. The best approach is indeed to work on improving the test in order to make it OS agnostic by creating a file and setting some privilege to deny access. I created it some time ago and I did not consider the impact on other systems that can build the application. I am opening a follow up issue to work on such improvement, in the while, we may even remove/comment the test in order to fix the problem described there. |
Yes, We do expect an error there. the true bug is that when run command
|
I guess that's because Darwin won't return an error when trying to access |
fix TestPermissionDenied should ignore darwin
Homebrew/homebrew-core#81904 (comment)
Release Note