fix: prevent writing non-report output to stdout (#2324)

Signed-off-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
Keith Zantow
2023-11-16 17:45:25 -05:00
committed by GitHub
parent c7eb3f4c93
commit 1c787f436f
13 changed files with 407 additions and 94 deletions
+41
View File
@@ -0,0 +1,41 @@
[Test_writeEvents/no_events/stdout - 1]
---
[Test_writeEvents/no_events/stderr - 1]
---
[Test_writeEvents/all_events/stdout - 1]
<my --
-
-
report 1!!>
<report 2>
---
[Test_writeEvents/all_events/stderr - 1]
<my notification 1!!
...still notifying>
<notification 2>
<notification 3>
A newer version of syft is available for download: v0.33.0 (installed version is [not provided])
---
[Test_writeEvents/quiet_only_shows_report/stdout - 1]
<report 1>
---
[Test_writeEvents/quiet_only_shows_report/stderr - 1]
---
@@ -1,41 +0,0 @@
[Test_postUIEventWriter_write/no_events/stdout - 1]
---
[Test_postUIEventWriter_write/no_events/stderr - 1]
---
[Test_postUIEventWriter_write/all_events/stdout - 1]
<my --
-
-
report 1!!>
<report 2>
---
[Test_postUIEventWriter_write/all_events/stderr - 1]
<my notification 1!!
...still notifying>
<notification 2>
<notification 3>
A newer version of syft is available for download: v0.33.0 (installed version is [not provided])
---
[Test_postUIEventWriter_write/quiet_only_shows_report/stdout - 1]
<report 1>
---
[Test_postUIEventWriter_write/quiet_only_shows_report/stderr - 1]
---