From 7b836f99f5a26d5481ff6a58c157add51447594e Mon Sep 17 00:00:00 2001 From: James Truher Date: Thu, 21 Jul 2016 14:51:08 -0700 Subject: [PATCH] create work-around for MacOS in handling wildcards --- .../Pester.Commands.Cmdlets.Archive.Tests.ps1 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Archive/Pester.Commands.Cmdlets.Archive.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Archive/Pester.Commands.Cmdlets.Archive.Tests.ps1 index f4a5db6ff..3c1d055f2 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Archive/Pester.Commands.Cmdlets.Archive.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Archive/Pester.Commands.Cmdlets.Archive.Tests.ps1 @@ -386,7 +386,8 @@ Describe "Test suite for Microsoft.PowerShell.Archive module" -Tags "CI" { } finally { - Remove-Item -LiteralPath $sourcePath -Force + get-item -literalPath $sourcePath | remove-Item -force + # Remove-Item -LiteralPath $sourcePath -Force } } It "Validate that Compress-Archive cmdlet errors out when DestinationPath resolves to multiple locations" { @@ -441,7 +442,8 @@ Describe "Test suite for Microsoft.PowerShell.Archive module" -Tags "CI" { } finally { - Remove-Item -LiteralPath $sourcePath -Force -Recurse + get-item -LiteralPath $sourcePath | Remove-Item -Force -Recurse + # Remove-Item -LiteralPath $sourcePath -Force -Recurse } } It "Validate that Compress-Archive cmdlet can accept DestinationPath parameter with Special Characters" { @@ -454,7 +456,8 @@ Describe "Test suite for Microsoft.PowerShell.Archive module" -Tags "CI" { } finally { - Remove-Item -LiteralPath $destinationPath -Force + Get-Item -LiteralPath $destinationPath | Remove-Item -Force + # Remove-Item -LiteralPath $destinationPath -Force } } It "Validate that Source Path can be at SystemDrive location" -skip:($IsCore) {