8000 "Validate that get-help <cmdletName> works" test requires sudo to run on linux · Issue #3527 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

"Validate that get-help <cmdletName> works" test requires sudo to run on linux #3527

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
TravisEz13 opened this issue Apr 10, 2017 · 5 comments
Assignees
Labels
Resolution-Fixed The issue is fixed. WG-Quality-Test issues in a test or in test infrastructure

Comments

@TravisEz13
Copy link
Member

Steps to reproduce

Start-PSPester -binDir /opt/microsoft/powershell/6.0.0-alpha.18

Expected behavior

Tests should work

Actual behavior

Test at HelpSystem.Tests.ps1#L76
fails with:

Failed to update Help for the module(s) 'Microsoft.PowerShell.Core` with UI culture(s) {en-US} : Access to the path '/opt/microsoft/powershell/6.0.0-alpha.18/en-US/System.Management.Automation.dll-help.xml' is denied.

image

Additional tests failing similarly

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
GitCommitId                    v6.0.0-alpha.18
PSVersion                      6.0.0-alpha
PSRemotingProtocolVersion      2.3
WSManStackVersion              3.0
SerializationVersion           1.1.0.1
PSEdition                      Core
BuildVersion                   3.0.0.0
CLRVersion
@iSazonov iSazonov added the WG-Quality-Test issues in a test or in test infrastructure label Apr 11, 2017
@SteveL-MSFT SteveL-MSFT modified the milestones: 6.0.0-beta1, 6.0.0-beta2 Apr 11, 2017
@joeyaiello
Copy link
Contributor

Probably blocked by #2190

@TravisEz13
Copy link
Member Author

@joeyaiello Another solution would be to tag these test as requiring sudo until the issue is resolved.

@joeyaiello
Copy link
Contributor

Didn't realize we had a mechanism for that. I'm all for it. :)

@TravisEz13
Copy link
Member Author

Since I'm running the tests manually... a new tag would work.

@SteveL-MSFT SteveL-MSFT modified the milestones: 6.0.0-beta, 6.0.0 May 15, 2017
@kalgiz
Copy link
Contributor
kalgiz commented Feb 26, 2018

Fixed in #6223

@kalgiz kalgiz closed this as completed Feb 26, 2018
@iSazonov iSazonov added the Resolution-Fixed The issue is fixed. label Mar 24, 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