Fix Install PackageProvider failure because we are not running on administrator

This commit is contained in:
quoctruong91 committed 2016-07-12 21:17:11 -07:00
1 parent c978927947
commit 50c3e5bfc8
4 files changed
+14 -11

No files matched your search

@@ -27,7 +27,6 @@ Describe "Get-package" -Tags @('BVT', 'DRT'){
Describe "Get-package with version parameter - valid scenarios" -Tags @('BVT', 'DRT'){
$destination = Join-Path $TestDrive GetPackageTests
$destination > C:\test.txt
It "Get-package supports -AllVersions parameter" -Skip {
$outputWithAllVersions = (Get-Package -providername Programs,Msi -AllVersions)
@@ -80,4 +79,4 @@ Describe "Get-package with version parameter - Error scenarios" -Tags @('BVT', '
$ERROR[0].FullyQualifiedErrorId | should be "VersionRangeAndRequiredVersionCannotBeSpecifiedTogether,Microsoft.PowerShell.PackageManagement.Cmdlets.GetPackage"
}
}
}