summaryrefslogtreecommitdiff
path: root/tools/u_boot_pylib/terminal.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-07-03 09:05:52 -0600
committerTom Rini <trini@konsulko.com>2024-07-03 09:05:52 -0600
commit4d3383623dd04be230ebb962c2f79bb3f3d502d9 (patch)
tree8c0b34c49d3a3cee72f6d9680ea0afc93d09f793 /tools/u_boot_pylib/terminal.py
parent65fbdab27224ee3943a89496b21862db83c34da2 (diff)
parentc85a05a5d87ce6f077c41d7e63a4a7953ddb351c (diff)
Merge tag 'dm-pull-2jun24-take2' of https://source.denx.de/u-boot/custodians/u-boot-dm
buildman CI improvements binman fixes and assumed size partial tools fixes for Python 3.12 patman enhancements
Diffstat (limited to 'tools/u_boot_pylib/terminal.py')
-rw-r--r--tools/u_boot_pylib/terminal.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/u_boot_pylib/terminal.py b/tools/u_boot_pylib/terminal.py
index 40d79f8ac07..2cd5a54ab52 100644
--- a/tools/u_boot_pylib/terminal.py
+++ b/tools/u_boot_pylib/terminal.py
@@ -164,8 +164,11 @@ def print_clear():
global last_print_len
if last_print_len:
- print('\r%s\r' % (' '* last_print_len), end='', flush=True)
- last_print_len = None
+ if print_test_mode:
+ print_test_list.append(PrintLine(None, None, None, None))
+ else:
+ print('\r%s\r' % (' '* last_print_len), end='', flush=True)
+ last_print_len = None
def set_print_test_mode(enable=True):
"""Go into test mode, where all printing is recorded"""