[Concept,02/37] patman: Capture todo_clear() output in test_workflow_list

Message ID 20260404213020.372253-3-sjg@u-boot.org
State New
Headers
Series patman: Autolink fixes and AI-assisted patch review |

Commit Message

Simon Glass April 4, 2026, 9:28 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

The call to todo_clear() is not wrapped in terminal.capture(), so the
"Todo cleared for series 'first'" message leaks to the console during
test runs.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 tools/patman/test_cseries.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/tools/patman/test_cseries.py b/tools/patman/test_cseries.py
index 7a5eede9f82..0b6e6ec9e32 100644
--- a/tools/patman/test_cseries.py
+++ b/tools/patman/test_cseries.py
@@ -4354,7 +4354,8 @@  Date:   .*
         self.assertIn('todo', lines[3])
 
         # Archive the todo
-        wf.todo_clear(cser, 'first')
+        with terminal.capture():
+            wf.todo_clear(cser, 'first')
 
         # Without --all, only SENT is active; no 'A' column
         with terminal.capture() as (out, _):