Commit f66153be193af3d4aa4d3630e7dcb41bfd6313b6

Authored by Simon Glass
1 parent 0b5b409acc

buildman: Fix repeating board list with -l

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>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

tools/buildman/builder.py
... ... @@ -918,7 +918,8 @@
918 918 if self._list_error_boards:
919 919 names = []
920 920 for board in line_boards[line]:
921   - names.append(board.target)
  921 + if not board.target in names:
  922 + names.append(board.target)
922 923 names_str = '(%s) ' % ','.join(names)
923 924 else:
924 925 names_str = ''