diff options
author | Simon Glass <sjg@chromium.org> | 2014-08-28 09:43:39 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-09-05 13:40:42 -0600 |
commit | 2c3deb9758c5be1c590bebdd25d8a36d486ea5e9 (patch) | |
tree | 2b844a37225fe82ff992eedcee8c5d21f2395d4b /tools/buildman/control.py | |
parent | d0c5719d92c85addcd38e1dcc21cbc4cbc0fc6a5 (diff) | |
download | u-boot-imx-2c3deb9758c5be1c590bebdd25d8a36d486ea5e9.zip u-boot-imx-2c3deb9758c5be1c590bebdd25d8a36d486ea5e9.tar.gz u-boot-imx-2c3deb9758c5be1c590bebdd25d8a36d486ea5e9.tar.bz2 |
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/control.py')
-rw-r--r-- | tools/buildman/control.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/buildman/control.py b/tools/buildman/control.py index 68ea961..b8a6cbf 100644 --- a/tools/buildman/control.py +++ b/tools/buildman/control.py @@ -94,7 +94,7 @@ def DoBuildman(options, args): if options.list_tool_chains: toolchains.List() print - return + return 0 # Work out how many commits to build. We want to build everything on the # branch. We also build the upstream commit as a control so we can see @@ -217,5 +217,10 @@ def DoBuildman(options, args): options.show_detail = True builder.ShowSummary(commits, board_selected) else: - builder.BuildBoards(commits, board_selected, + fail, warned = builder.BuildBoards(commits, board_selected, options.keep_outputs, options.verbose) + if fail: + return 128 + elif warned: + return 129 + return 0 |