mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-02 14:28:59 +02:00
[eric] ci: the defender drill reads Write-Host output via 6>&1, not the empty pipeline
This commit is contained in:
@@ -55,7 +55,10 @@ jobs:
|
||||
- name: -Status reports them, so the user-facing read-back is honest too
|
||||
shell: pwsh
|
||||
run: |
|
||||
$out = & backend\scripts\add-defender-exclusion.ps1 -Status | Out-String
|
||||
# The script reports with Write-Host, which does NOT go down the pipeline; 6>&1 redirects the
|
||||
# information stream so the drill reads what a user would actually see. (Piping to Out-String
|
||||
# alone captured nothing and failed a step whose product behaviour was correct.)
|
||||
$out = (& backend\scripts\add-defender-exclusion.ps1 -Status 6>&1) | Out-String
|
||||
Write-Host $out
|
||||
if ($out -notmatch 'openswarm') { throw "-Status did not report the exclusions it just added" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user