Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Invoke-Item.Tests.ps1 should handle finding multiple ping executables #5220

Copy link
Copy link
@JamesWTruher

Description

@JamesWTruher
Issue body actions

On openSUSE the following test failed for Beta.9.

message     : Expected: {Invoke-Item : Cannot find path '/usr/bin/ping /bin/ping' because it does not
              exist.
              At line:1 char:1
              + Invoke-Item '/usr/bin/ping /bin/ping'
              + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                  + CategoryInfo          : ObjectNotFound: (/usr/bin/ping /bin/ping:String)
                  [Invoke-Item], ItemNotFoundException
                  + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.Invok
                 eItemCommand

              } to match the expression {usage: ping}
stack-trace : at line: 77 in /TEST/PowerShell/test/powershell/Modules/Microsoft.PowerShell.Utility/Invoke-Item.Tests.ps1
              77:             Get-Content $redirectFile -Raw | Should Match "usage: ping"

The test should handle finding multiple copies of ping

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.