test/py: Add a helper to send characters
authorSimon Glass <sjg@chromium.org>
Sat, 15 Mar 2025 14:25:50 +0000 (14:25 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 3 Apr 2025 17:41:55 +0000 (11:41 -0600)
commit4c6774c6068add5a768dbcb1fa6bc284500bed0f
tree8758083f88c8d77b78dacdb0e88c376eaf9a01f8
parent0b9e517aafc2cfa1b5ab1af2b82983fd895b7be3
test/py: Add a helper to send characters

The existing run_command() method is not great for sending things other
than U-Boot commands. Add a helper for sending arbitrary strings as well
as control characters.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
test/py/console_base.py