[PATCH v2 04/30] u_boot_pylib: Allow control of capturing

Simon Glass sjg at chromium.org
Fri May 23 15:19:22 CEST 2025


Tests often capture output so they can check it. This means that if the
test fails it is not easy to see what the output actually was.

Add a -N flag which writes out the output after it has been captured.
This is not a perfect solution but it is simple and seems to work well
in practice.

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

(no changes since v1)

 tools/u_boot_pylib/terminal.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

Applied to sjg/master, thanks!


More information about the U-Boot mailing list