diff --git a/tests/WefDeployment.Cli.Tests.ps1 b/tests/WefDeployment.Cli.Tests.ps1 index 7d7db2fa..09dd006e 100644 --- a/tests/WefDeployment.Cli.Tests.ps1 +++ b/tests/WefDeployment.Cli.Tests.ps1 @@ -21,3 +21,5 @@ Assert-Cli @('wec-collector','-LogProfile','ASD') 1 'LogProfile is supported onl Assert-Cli @('wef-source','-ChannelAction','Configure') 1 'Channel options require' Assert-Cli @('wef-source') 1 'WefConfigPath is required' Write-Host "WefDeployment.Cli.Tests: $script:count public CLI checks passed." +# Expected child failures are asserted above; do not leak their exit code to CI. +$global:LASTEXITCODE = 0