aboutsummaryrefslogtreecommitdiff
path: root/tools/buildman/test.py
diff options
context:
space:
mode:
authorSimon Glass2020-04-09 15:08:47 -0600
committerSimon Glass2020-04-21 06:33:47 -0600
commit7b33f21804437bedc5cb2b58cff7706a514c0f57 (patch)
treec41527e1f0649b78af384fee6ed7066dadfa0dec /tools/buildman/test.py
parent95ed0a2dbff502ac40ce0585c6549731c09a8c43 (diff)
buildman: Show a summary of the build result
When buildman finishes it leaves the last summary line visible, which shows the number of successful builds, builds with warnings and builds with errors. It is useful also to see how many builds were done in total along with the time taken. Show these on a separate line before buildman finishes. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/test.py')
-rw-r--r--tools/buildman/test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/buildman/test.py b/tools/buildman/test.py
index a495df03036..fb861e16a1b 100644
--- a/tools/buildman/test.py
+++ b/tools/buildman/test.py
@@ -205,9 +205,9 @@ class TestBuild(unittest.TestCase):
if line.text.strip():
count += 1
- # We should get two starting messages, then an update for every commit
- # built.
- self.assertEqual(count, len(commits) * len(boards) + 2)
+ # We should get two starting messages, an update for every commit built
+ # and a summary message
+ self.assertEqual(count, len(commits) * len(boards) + 3)
build.SetDisplayOptions(**kwdisplay_args);
build.ShowSummary(self.commits, board_selected)
if echo_lines: