[ubuntu] Refactor Common.Helpers (#8910)

* [ubuntu] Refactor Common.Helpers

* Move Get-AndroidPackages function from BeforeAll

* Fix ParameterBinding
This commit is contained in:
Shamil Mubarakshin
2023-11-30 10:23:27 +01:00
committed by GitHub
parent 92e22bd8c6
commit 0c03739e50
5 changed files with 156 additions and 65 deletions

View File

@@ -135,7 +135,7 @@ function Get-HomebrewVersion {
}
function Get-CpanVersion {
$result = Get-CommandResult "cpan --version" -ExpectExitCode @(25, 255)
$result = Get-CommandResult "cpan --version" -ExpectedExitCode @(25, 255)
$result.Output -match "version (?<version>\d+\.\d+) " | Out-Null
return $Matches.version
}