create work-around for MacOS in handling wildcards

This commit is contained in:
James Truher committed 2016-08-02 12:05:24 -07:00
1 parent 0f60b69af4
commit 7b836f99f5
1 file changed
+6 -3
@@ -386,7 +386,8 @@ Describe "Test suite for Microsoft.PowerShell.Archive module" -Tags "CI" {
} }
finally 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" { 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 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" { 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 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) { It "Validate that Source Path can be at SystemDrive location" -skip:($IsCore) {