]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
buildman: Fix repeating board list with -l
authorSimon Glass <sjg@chromium.org>
Thu, 16 Oct 2014 07:05:55 +0000 (01:05 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 27 Nov 2014 03:25:40 +0000 (20:25 -0700)
Ensure that we don't print duplicate board names when -l is used.

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

index 8155c1681eab8191ded875154a2f21c9af83d394..7002034221d12789473d33e7f62cb21cbe296be7 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 = ''