Skip to content

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

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions