Fixed a redundant error check in Test-PackageDependency.Tests.ps1 (#3833)
* Fixed a redundant error check in Test-PackageDependency.Tests.ps1
This commit is contained in:
Родитель
6631888422
Коммит
129c7b458d
|
@ -79,7 +79,7 @@ Function AddTestPackages
|
||||||
}
|
}
|
||||||
Add-AppxPackage $packageMsix
|
Add-AppxPackage $packageMsix
|
||||||
$p = Get-AppxPackage $packageName
|
$p = Get-AppxPackage $packageName
|
||||||
if (($p -eq $null) -Or ($p.PackageFullName -ne $packageFullName))
|
if ($p -eq $null)
|
||||||
{
|
{
|
||||||
Write-Error $p
|
Write-Error $p
|
||||||
Write-Error "Get-AppxPackage result not expected"
|
Write-Error "Get-AppxPackage result not expected"
|
||||||
|
|
|
@ -73,7 +73,7 @@ Function AddTestPackages
|
||||||
}
|
}
|
||||||
Add-AppxPackage $packageMsix
|
Add-AppxPackage $packageMsix
|
||||||
$p = Get-AppxPackage $packageName
|
$p = Get-AppxPackage $packageName
|
||||||
if (($p -eq $null) -Or ($p.PackageFullName -ne $packageFullName))
|
if ($p -eq $null)
|
||||||
{
|
{
|
||||||
Write-Error $p
|
Write-Error $p
|
||||||
Write-Error "Get-AppxPackage result not expected"
|
Write-Error "Get-AppxPackage result not expected"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче