1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-02 01:02:19 +02:00

buildman: Set the return code to indicate build result

When buildman finds errors/warnings when building, set the return code to
indicate this.

Suggested-by: York Sun <yorksun@freescale.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2014-08-28 09:43:39 -06:00
parent d0c5719d92
commit 2c3deb9758
4 changed files with 20 additions and 3 deletions

View File

@@ -1031,6 +1031,10 @@ class Builder:
value is Board object
keep_outputs: True to save build output files
verbose: Display build results as they are completed
Returns:
Tuple containing:
- number of boards that failed to build
- number of boards that issued warnings
"""
self.commit_count = len(commits) if commits else 1
self.commits = commits
@@ -1060,3 +1064,4 @@ class Builder:
self.out_queue.join()
print
self.ClearLine(0)
return (self.fail, self.warned)