8000 Need to support running in root privilege on Linux Travis CI similar as in AppVeyor · Issue #5645 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

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

Closed
daxian-dbw opened this issue Dec 7, 2017 · 5 comments
Assignees
Labels
Resolution-Fixed The issue is fixed. WG-Quality-Test issues in a test or in test infrastructure

Comments

@daxian-dbw
Copy link
Member
daxian-dbw commented Dec 7, 2017

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.

@TravisEz13
Copy link
Member

@iSazonov
Copy link
Collaborator

I found some tests that use Test-Elevated - I believe we should fix them too.

@anmenaga
Copy link
anmenaga commented 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
Copy link
Member

you could use the same commands to run locally. The same situation as with windows today.

@kalgiz
Copy link
Contributor
kalgiz commented Feb 16, 2018

Resolved in #6145 PR.

@kalgiz kalgiz closed this as completed Feb 16, 2018
@iSazonov iSazonov added the Resolution-Fixed The issue is fixed. label Feb 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Fixed The issue is fixed. WG-Quality-Test issues in a test or in test infrastructure
Projects
None yet
Development

No branches or pull requests

5 participants
0