Skip to content
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_properties may fail if the test is run by a user with elevated privileges #191

Open
kitchoi opened this issue Nov 5, 2020 · 0 comments
Labels
component: test suite Issues related to the test suite

Comments

@kitchoi
Copy link
Contributor

kitchoi commented Nov 5, 2020

This issue is open referring the issue noted in this PR: #88

When building and testing the package in a chroot enviornment, we have a root user. However, test_properties fails when run as a root user.

os.chmod(f.path, stat.S_IRUSR)
self.assertEqual(f.is_readonly, True)

This fails because root will always have permission to write to the file.

@rahulporuri rahulporuri added the component: test suite Issues related to the test suite label Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: test suite Issues related to the test suite
Projects
None yet
Development

No branches or pull requests

2 participants