buildman: Correct counting of build failures on retry
authorSimon Glass <sjg@chromium.org>
Sat, 6 Sep 2014 01:00:17 +0000 (19:00 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 9 Sep 2014 22:38:29 +0000 (16:38 -0600)
commitfb3954f9ea444100be70f175bbedb685e397c540
treea819314dfe970f90a4b81665a9f2af0371ac1f78
parent823e60b62a98061a662536093d46f8f26f6d318f
buildman: Correct counting of build failures on retry

When a build is to be performed, buildman checks to see if it has already
been done. In most cases it will not bother trying again. However, it was
not reading the return code from the 'done' file, so if the result was a
failure, it would not be counted. This depresses the 'failure' count stats
that buildman prints in this case.

Fix this bug by always reading the return code.

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