Fix use of rm alias in tests

This is not an alias on Linux / OS X.
This commit is contained in:
Andrew Schwartzmeyer
2016-07-19 15:12:12 -07:00
parent a466d4b351
commit 472947bf76
2 changed files with 22 additions and 22 deletions
@@ -273,7 +273,7 @@ Describe "Install-Save-Package with multiple sources" -Tags @('BVT', 'DRT'){
Register-PackageSource -Name foo -Location $InternalGallery -ProviderName 'PowerShellGet' -Trusted -ErrorAction SilentlyContinue
Register-PackageSource -Name bar -Location $InternalGallery -ProviderName 'NuGet' -ErrorAction SilentlyContinue
if (test-path "$destination") {
rm $destination -force -Recurse
Remove-Item $destination -force -Recurse
}
@@ -291,7 +291,7 @@ Describe "Install-Save-Package with multiple sources" -Tags @('BVT', 'DRT'){
(test-path "$destination\TSDProvider*") | should be $true
if (test-path "$destination\TSDProvider*") {
rm $destination\TSDProvider* -force -Recurse
Remove-Item $destination\TSDProvider* -force -Recurse
}
}
finally
@@ -362,7 +362,7 @@ Describe "Install-Save-Package with multiple sources" -Tags @('BVT', 'DRT'){
Register-PackageSource -Name foobar -Location http://www.nuget.org/api/v2 -ProviderName 'NuGet' -ErrorAction SilentlyContinue
if (test-path "$destination") {
rm $destination -force -Recurse
Remove-Item $destination -force -Recurse
}
@@ -379,7 +379,7 @@ Describe "Install-Save-Package with multiple sources" -Tags @('BVT', 'DRT'){
(test-path "$destination\jquery*") | should be $true
if (test-path "$destination\jquery*") {
rm $destination\jquery* -force -Recurse
Remove-Item $destination\jquery* -force -Recurse
}
}
finally
@@ -398,7 +398,7 @@ Describe "Install-Save-Package with multiple sources" -Tags @('BVT', 'DRT'){
if (test-path "$destination") {
rm $destination -force -Recurse
Remove-Item $destination -force -Recurse
}
@@ -417,14 +417,14 @@ Describe "Install-Save-Package with multiple sources" -Tags @('BVT', 'DRT'){
(test-path "$destination\Contoso*") | should be $true
if (test-path "$destination\Contoso*") {
rm $destination\Contoso* -force -Recurse
Remove-Item $destination\Contoso* -force -Recurse
}
}
It "save-package with array of registered sources, Expect succeed" -Pending {
if (test-path "$destination") {
rm $destination -force -Recurse
Remove-Item $destination -force -Recurse
}
$x= save-package TSDProvider -force -Source @($InternalSource, $InternalSource2) -path $destination -ProviderName @('PowershellGet', 'NuGet')
@@ -433,13 +433,13 @@ Describe "Install-Save-Package with multiple sources" -Tags @('BVT', 'DRT'){
(test-path "$destination\TSDProvider*") | should be $true
if (test-path "$destination\TSDProvider*") {
rm $destination\TSDProvider* -force -Recurse
Remove-Item $destination\TSDProvider* -force -Recurse
}
}
It "save-package with array of sources, Expect succeed" -Skip {
if (test-path "$destination") {
rm $destination -force -Recurse
Remove-Item $destination -force -Recurse
}
$x= save-package jquery -force -Source @('fffffbbbbb', 'https://www.nuget.org/api/v2') -path $destination -ProviderName @('Nuget', 'Chocolatey')
@@ -449,7 +449,7 @@ Describe "Install-Save-Package with multiple sources" -Tags @('BVT', 'DRT'){
(test-path "$destination\jquery*") | should be $true
if (test-path "$destination\jquery*") {
rm $destination\jquery* -force -Recurse
Remove-Item $destination\jquery* -force -Recurse
}
}
}
@@ -497,10 +497,10 @@ Describe Save-Package -Tags @('BVT', 'DRT'){
$package.Name | should be "TSDProvider"
(test-path "$dest\TSDProvider*") | should be $true
if (test-path "$dest\TSDProvider*") {
rm $dest\TSDProvider* -force
Remove-Item $dest\TSDProvider* -force
}
if (test-path "$dest") {
rm $dest -force
Remove-Item $dest -force
}
}
@@ -511,7 +511,7 @@ Describe Save-Package -Tags @('BVT', 'DRT'){
$package.Name | should be "TSDProvider"
(test-path "$destination\TSDProvider*") | should be $true
if (test-path "$destination\TSDProvider*") {
rm $destination\TSDProvider* -force
Remove-Item $destination\TSDProvider* -force
}
}
@@ -522,10 +522,10 @@ Describe Save-Package -Tags @('BVT', 'DRT'){
$package.Name | should be "TSDProvider"
(test-path "$dest\TSDProvider*") | should be $true
if (test-path "$dest\TSDProvider*") {
rm $dest\TSDProvider* -force
Remove-Item $dest\TSDProvider* -force
}
if (test-path "$dest") {
rm $dest -force
Remove-Item $dest -force
}
}
@@ -535,7 +535,7 @@ Describe Save-Package -Tags @('BVT', 'DRT'){
$package.Name | should be "TSDProvider"
(test-path "$destination\TSDProvider*") | should be $true
if (test-path "$destination\TSDProvider*") {
rm $destination\TSDProvider* -force
Remove-Item $destination\TSDProvider* -force
}
}
@@ -592,7 +592,7 @@ Describe Save-Package -Tags @('BVT', 'DRT'){
}
if (Test-Path $destination\zlib*) {
rm $destination\zlib*
Remove-Item $destination\zlib*
}
}
@@ -618,7 +618,7 @@ Describe Save-Package -Tags @('BVT', 'DRT'){
}
if (Test-Path $destination\zlib*) {
rm $destination\zlib*
Remove-Item $destination\zlib*
}
}
@@ -632,7 +632,7 @@ Describe Save-Package -Tags @('BVT', 'DRT'){
}
finally {
if (Test-Path $destination\ModuleWithDependenciesLoop*) {
rm $destination\ModuleWithDependenciesLoop*
Remove-Item $destination\ModuleWithDependenciesLoop*
}
}
}
@@ -644,7 +644,7 @@ Describe Save-Package -Tags @('BVT', 'DRT'){
}
finally {
if (Test-Path $destination\TestPackage*) {
rm $destination\TestPackage*
Remove-Item $destination\TestPackage*
}
}
}
@@ -663,7 +663,7 @@ Describe Save-Package -Tags @('BVT', 'DRT'){
(Test-Path $destination\contoso*) | should be $true
if (Test-Path $destination\contoso*) {
rm $destination\contoso*
Remove-Item $destination\contoso*
}
}
@@ -685,7 +685,7 @@ Describe Save-Package -Tags @('BVT', 'DRT'){
(find-package -name "zlib" -provider $nuget -source $source | save-package -Path $destination)
(Test-Path -Path $destination\zlib*) | should be $true
if (Test-Path -Path $destination\zlib*) {
rm $destination\zlib*
Remove-Item $destination\zlib*
}
}