ci(lint): enhance PSScriptAnalyzer settings and suppress false positives; improve error handling in scripts
This commit is contained in:
@@ -89,7 +89,7 @@ function Format-Elapsed {
|
||||
}
|
||||
}
|
||||
|
||||
function Run-Test {
|
||||
function Invoke-Test {
|
||||
param(
|
||||
[string] $JobId,
|
||||
[string] $Mode,
|
||||
@@ -164,11 +164,11 @@ $baselineResult = $null
|
||||
$guestCloneResult = $null
|
||||
|
||||
if (-not $SkipBaseline) {
|
||||
$baselineResult = Run-Test -JobId $BaselineJobId -Mode "BASELINE (host-side zip)" -CommonParams $commonParams
|
||||
$baselineResult = Invoke-Test -JobId $BaselineJobId -Mode "BASELINE (host-side zip)" -CommonParams $commonParams
|
||||
}
|
||||
|
||||
if (-not $SkipGuestClone) {
|
||||
$guestCloneResult = Run-Test -JobId $GuestCloneJobId -Mode "GUEST CLONE (-UseGitClone)" -UseGitClone -CommonParams $commonParams
|
||||
$guestCloneResult = Invoke-Test -JobId $GuestCloneJobId -Mode "GUEST CLONE (-UseGitClone)" -UseGitClone -CommonParams $commonParams
|
||||
}
|
||||
|
||||
# ────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user