buildman: Limit the length of progress messages

If a progress message is longer than the terminal line it will scroll the
terminal. Limit the messages to the terminal width.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2020-04-09 15:08:46 -06:00
parent 6eb76cac1c
commit 95ed0a2dbf

View file

@ -458,7 +458,7 @@ class Builder:
line += target
terminal.PrintClear()
Print(line, newline=False)
Print(line, newline=False, limit_to_line=True)
def _GetOutputDir(self, commit_upto):
"""Get the name of the output directory for a commit number