u_boot_pylib: Allow control of capturing
authorSimon Glass <sjg@chromium.org>
Tue, 29 Apr 2025 13:22:01 +0000 (07:22 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 27 May 2025 09:07:41 +0000 (10:07 +0100)
commitb697480f19cf690a51bfb3c788aa381de43eac79
tree5040b443467798e34cbf92061767ac2670c4479a
parent84f3deaa995502325a6d84bda6338c4e0a4bf4ea
u_boot_pylib: Allow control of capturing

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@chromium.org>
tools/u_boot_pylib/terminal.py