buildman: Fix repeating board list with -l
authorSimon Glass <sjg@chromium.org>
Wed, 15 Oct 2014 12:34:41 +0000 (14:34 +0200)
committerSimon Glass <sjg@chromium.org>
Mon, 3 Nov 2014 21:10:52 +0000 (14:10 -0700)
Ensure that we don't print duplicate board names when -l is used.

Change-Id: I56adb138fc18f772ba61eba0fa194cdd7bc7efc6
Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Albert Aribaud <albert.u.boot@aribaud.net>
tools/buildman/builder.py

index 8155c16..7002034 100644 (file)
@@ -918,7 +918,8 @@ class Builder:
             if self._list_error_boards:
                 names = []
                 for board in line_boards[line]:
-                    names.append(board.target)
+                    if not board.target in names:
+                        names.append(board.target)
                 names_str = '(%s) ' % ','.join(names)
             else:
                 names_str = ''