patman: Add a way of recording terminal output for testing
authorSimon Glass <sjg@chromium.org>
Sat, 6 Sep 2014 01:00:06 +0000 (19:00 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 9 Sep 2014 19:54:22 +0000 (13:54 -0600)
commit3c6c0f81bf3a2edfe4240bf0a3eb0e0c75140ac5
tree2ffedae7c739d6be274e7c257cd49a4fc5709399
parent0b703dbcee7103f07804d0a4328d1593355c4324
patman: Add a way of recording terminal output for testing

When running unit tests we don't want output to go to the terminal.
Provide a way of collecting it so that it can be examined by test code
later.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/terminal.py