]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
buildman: Add a space before the list of boards
authorSimon Glass <sjg@chromium.org>
Fri, 6 Feb 2015 05:06:11 +0000 (22:06 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:20:09 +0000 (14:20 +0200)
Tweak the output slightly so we don't get things like:

   - board1 board2+  board3 board4

There should be a space before the '+'.

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

index 1b0ad9927592d9b22ca63893de0bd2255db8fb7d..54f3292208a9f0ccf64a71758b2040f912880fce 100644 (file)
@@ -664,7 +664,7 @@ class Builder:
                 arch = 'unknown'
             str = self.col.Color(color, ' ' + target)
             if not arch in done_arch:
-                str = self.col.Color(color, char) + '  ' + str
+                str = ' %s  %s' % (self.col.Color(color, char), str)
                 done_arch[arch] = True
             if not arch in arch_list:
                 arch_list[arch] = str
index c0ad5d027dce1c3f3e5c56df4e7e242fc007a3da..7642d94473663df4c4781365a6ca4a70f6b70011 100644 (file)
@@ -169,7 +169,7 @@ class TestBuild(unittest.TestCase):
         expected_colour = col.GREEN if ok else col.RED
         expect = '%10s: ' % arch
         # TODO(sjg@chromium.org): If plus is '', we shouldn't need this
-        expect += col.Color(expected_colour, plus)
+        expect += ' ' + col.Color(expected_colour, plus)
         expect += '  '
         for board in boards:
             expect += col.Color(expected_colour, ' %s' % board)