mirror of
https://github.com/Yamato-Security/WELA.git
synced 2026-11-15 09:24:11 +01:00
Clear handled native-read exit status after Windows smoke assertions
This commit is contained in:
1 parent
0403f14446
commit
f930331314
1 file changed
+3
@@ -30,3 +30,6 @@ try {
|
||||
Assert (($before | ConvertTo-Json -Compress) -ceq ($after | ConvertTo-Json -Compress)) 'Read-only audit leaves both service start modes and states unchanged'
|
||||
Write-Host 'WEF Windows read-only smoke passed; no subscription deployment or event delivery is claimed.'
|
||||
} finally { Remove-Item -LiteralPath $temp -Recurse -Force }
|
||||
# The report retains handled native-read failures (for example a stopped Wecsvc).
|
||||
# Successful smoke assertions must not inherit that command's exit status.
|
||||
$global:LASTEXITCODE = 0
|
||||
Reference in new issue
Block a user