mirror of
https://github.com/Yamato-Security/WELA.git
synced 2026-11-02 11:18:18 +01:00
Clear expected child failure codes after regression assertions
This commit is contained in:
1 parent
eb3232faf5
commit
bf82f2c458
2 files changed
+6
No files matched your search
@@ -13,4 +13,7 @@ catch { $caught = $_.ToString() }
|
||||
if ($caught -notmatch 'exit: 9' -or $caught -notmatch 'WELA-smoke-diagnostic') {
|
||||
throw "Native exit/stderr capture failed: $caught"
|
||||
}
|
||||
# The intentionally failed child was asserted above; do not leak its expected
|
||||
# exit code into a CI shell wrapper after a successful smoke test.
|
||||
$global:LASTEXITCODE = 0
|
||||
Write-Host "Read-only Windows smoke checks passed (process creation audit mask: $mask). No Windows settings changed."
|
||||
Reference in new issue
Block a user