diff mbox series

[v2,19/28] buildman: Limit the length of progress messages

Message ID 20200409150840.v2.19.I8eddf71be429d9f2fb7ce2143092623d29898aaa@changeid
State Accepted
Commit 95ed0a2dbff502ac40ce0585c6549731c09a8c43
Headers show
Series buildman: Improve summary output | expand

Commit Message

Simon Glass April 9, 2020, 9:08 p.m. UTC
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 at chromium.org>
---

Changes in v2: None

 tools/buildman/builder.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Simon Glass April 17, 2020, 11:29 p.m. UTC | #1
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 at chromium.org>
---

Changes in v2: None

 tools/buildman/builder.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-dm, thanks!
diff mbox series

Patch

diff --git a/tools/buildman/builder.py b/tools/buildman/builder.py
index b9caf6cf9c1..73753eb4bc9 100644
--- a/tools/buildman/builder.py
+++ b/tools/buildman/builder.py
@@ -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