Fixed issue on OSX

This commit is contained in:
TingLiu6
2016-05-24 23:01:22 -07:00
parent df6e4c4a92
commit 0fa73fb375
+4 -3
View File
@@ -4,7 +4,7 @@
@{ Name = 'Separator';Command = "Write-Host a,b,c -Separator '+'"; returnValue = "a+b+c" }
)
It "write-Host works with '<Name>' switch" -TestCases $testData {
It "write-Host works with '<Name>' 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
}