-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Need to support running in root privilege on Linux Travis CI similar as in AppVeyor #5645
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
Comments
This change needs to use this feature to actually run these tests on linux: https://github.com/PowerShell/PowerShell/pull/6034/files/df3371990529ae64f481760f1edb7ccdbb89d9d7..ff9a0dde9d655efbe1460e0fab8e3f5dcf7ddee2 |
I found some tests that use |
Can somebody please confirm/deny if the fix for this won't be limited to "Travis CI" system? |
you could use the same commands to run locally. The same situation as with windows today. |
Resolved in #6145 PR. |
Uh oh!
There was an error while loading. Please reload this page.
We need to support running tests in root privilege on Linux Travis CI in a similar way as our windows tests running in AppVeyor. For windows tests, we have a tag
RequireAdminOnWindows
to indicate the tests that need admin privilege. We run those tests in an adminpwsh
session, and then we userunas
to remove admin privilege and run the rest tests.With
sudo: required
in.travis.yml
, Travis CI Linux builds run in regular user privilege by default, but you can get the root privilege usingsudo
with no need to provide a password (see the documentation). So we should be able to support a similar tag likeRequireAdminOnWindows
on Linux.The text was updated successfully, but these errors were encountered: