You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Need to support running in root privilege on Linux Travis CI similar as in AppVeyor #5645
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 admin pwsh session, and then we use runas 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 using sudo with no need to provide a password (see the documentation). So we should be able to support a similar tag like RequireAdminOnWindows on Linux.
Can somebody please confirm/deny if the fix for this won't be limited to "Travis CI" system?
I'm talking about a scenario where I run PS tests on a private Linux VM.
Assuming tests are marked properly, will they run with admin privilege in this case?
Activity
TravisEz13 commentedon Jan 27, 2018
This change needs to use this feature to actually run these tests on linux: https://github.com/PowerShell/PowerShell/pull/6034/files/df3371990529ae64f481760f1edb7ccdbb89d9d7..ff9a0dde9d655efbe1460e0fab8e3f5dcf7ddee2
iSazonov commentedon Jan 27, 2018
I found some tests that use
Test-Elevated- I believe we should fix them too.anmenaga commentedon Feb 9, 2018
Can somebody please confirm/deny if the fix for this won't be limited to "Travis CI" system?
I'm talking about a scenario where I run PS tests on a private Linux VM.
Assuming tests are marked properly, will they run with admin privilege in this case?
TravisEz13 commentedon Feb 9, 2018
you could use the same commands to run locally. The same situation as with windows today.
kalgiz commentedon Feb 16, 2018
Resolved in #6145 PR.