diff --git a/test/powershell/Write-Host.Tests.ps1 b/test/powershell/Write-Host.Tests.ps1 index 0c0cfbfa0..5df8ac767 100644 --- a/test/powershell/Write-Host.Tests.ps1 +++ b/test/powershell/Write-Host.Tests.ps1 @@ -4,7 +4,7 @@ @{ Name = 'Separator';Command = "Write-Host a,b,c -Separator '+'"; returnValue = "a+b+c" } ) - It "write-Host works with '' switch" -TestCases $testData { + It "write-Host works with '' switch" -TestCases $testData -Pending:$IsOSX { param($Command, $returnValue) $tempFile = [io.path]::getTempFIleName() @@ -12,11 +12,12 @@ $Command > $script - if($IsLinux) + If($IsLinux) { powershell $script > $tempFile } - else + + If ($IsWindows) { powershell.exe $script > $tempFile }