From 0fa73fb37560d0a419b0028e29ae1de3723d555e Mon Sep 17 00:00:00 2001 From: TingLiu6 Date: Tue, 24 May 2016 23:01:22 -0700 Subject: [PATCH] Fixed issue on OSX --- test/powershell/Write-Host.Tests.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 }