From 7cac07f31cd7fa5af62aaf7626597bff81c1e98a Mon Sep 17 00:00:00 2001 From: Alex Jordan Date: Wed, 29 Jun 2016 12:32:46 -0700 Subject: [PATCH] Adding pending to invokeitem tests due to windows bug --- test/powershell/Invoke-Item.Tests.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/powershell/Invoke-Item.Tests.ps1 b/test/powershell/Invoke-Item.Tests.ps1 index 05e1013cd..9562284c4 100644 --- a/test/powershell/Invoke-Item.Tests.ps1 +++ b/test/powershell/Invoke-Item.Tests.ps1 @@ -61,11 +61,13 @@ Describe "Invoke-Item" { $powershell = Join-Path -Path $PsHome -ChildPath "powershell" } - It "Should call the function without error" { +#Both tests are pending due to a bug in Invoke-Item on Windows. Fixed for Linux + + It "Should call the function without error" -Pending { { New-Item -Name $testfile -Path $tmpDirectory -ItemType file } | Should Not Throw } - It "Should invoke a text file without error" { + It "Should invoke a text file without error" -Pending { $debugfn = NewProcessStartInfo "-noprofile ""``Invoke-Item $FullyQualifiedFile`n" -RedirectStdIn $process = RunPowerShell $debugfn EnsureChildHasExited $process