]> git.sur5r.net Git - u-boot/commitdiff
buildman: Print a message indicating the build is starting
authorSimon Glass <sjg@chromium.org>
Sun, 18 Sep 2016 22:48:33 +0000 (16:48 -0600)
committersjg <sjg@chromium.org>
Sun, 9 Oct 2016 15:30:32 +0000 (09:30 -0600)
Make it clear when buildman actually starts building. This happens when it
has prepared the threads, working directory and output directories.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/buildman/builder.py
tools/buildman/test.py

index da2a0a128133161d95916dd570fe2ad63d3b2608..384f053015e06f95778cda8c2a53a0f442d62349 100644 (file)
@@ -1430,6 +1430,7 @@ class Builder:
         self._PrepareWorkingSpace(min(self.num_threads, len(board_selected)),
                 commits is not None)
         self._PrepareOutputSpace()
+        Print('\rStarting build...', newline=False)
         self.SetupBuild(board_selected, commits)
         self.ProcessResult(None)
 
index d8f3c81fadf9345f6ffbec9dad86257a2dca8b76..ed2a3a8929bb4af9ca364f5971e8c97412980d2f 100644 (file)
@@ -198,9 +198,9 @@ class TestBuild(unittest.TestCase):
             if line.text.strip():
                 count += 1
 
-        # We should get one starting message, then an update for every commit
+        # We should get two starting messages, then an update for every commit
         # built.
-        self.assertEqual(count, len(commits) * len(boards) + 1)
+        self.assertEqual(count, len(commits) * len(boards) + 2)
         build.SetDisplayOptions(show_errors=True);
         build.ShowSummary(self.commits, board_selected)
         #terminal.EchoPrintTestLines()