Skip to content

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

@TravisEz13

Description

@TravisEz13

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions