summaryrefslogtreecommitdiff
path: root/tools/buildman/builder.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-08-28 09:43:39 -0600
committerSimon Glass <sjg@chromium.org>2014-09-05 13:40:42 -0600
commit2c3deb9758c5be1c590bebdd25d8a36d486ea5e9 (patch)
tree2b844a37225fe82ff992eedcee8c5d21f2395d4b /tools/buildman/builder.py
parentd0c5719d92c85addcd38e1dcc21cbc4cbc0fc6a5 (diff)
downloadu-boot-2c3deb9758c5be1c590bebdd25d8a36d486ea5e9.tar.gz
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>
Diffstat (limited to 'tools/buildman/builder.py')
-rw-r--r--tools/buildman/builder.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/buildman/builder.py b/tools/buildman/builder.py
index a555bd81fc..106fde0a32 100644
--- a/tools/buildman/builder.py
+++ b/tools/buildman/builder.py
@@ -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)