buildman: Use an object to hold error lines
authorSimon Glass <sjg@chromium.org>
Thu, 9 Apr 2020 21:08:36 +0000 (15:08 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 21 Apr 2020 12:33:47 +0000 (06:33 -0600)
commit35d696dbe507aeafca87843f0cecfc77efa7aba7
treed21f3e008561d3393c1676cdbb925bc96e917ffc
parent5627bd9d96bea76a51474286eb97b4bb47914c83
buildman: Use an object to hold error lines

At present the string for each error line is created in _CalcErrorDelta()
and used to create the summary output. This is inflexible since all the
information (error/warning character, error line, list of boards with that
error line) is munged together in a string.

Create an object to hold this information and only convert it to a string
when printing the actual output.

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