Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: buildbot/bb_run_bot.py

Issue 12324007: Android buildbot - halt build if subcommand returns error (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/build/android/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: buildbot/bb_run_bot.py
===================================================================
--- buildbot/bb_run_bot.py (revision 183435)
+++ buildbot/bb_run_bot.py (working copy)
@@ -178,7 +178,6 @@
for command_obj in command_objs:
print 'Will run:', CommandToString(command_obj.command)
- return_code = 0
for command_obj in command_objs:
if command_obj.step_name:
buildbot_report.PrintNamedStep(command_obj.step_name)
@@ -193,8 +192,9 @@
env = dict(os.environ)
env['BUILDBOT_TESTING'] = '1'
- return_code |= subprocess.call(command, cwd=CHROME_SRC, env=env)
- return return_code
+ return_code = subprocess.call(command, cwd=CHROME_SRC, env=env)
+ if return_code != 0:
+ return return_code
Yaron 2013/02/21 02:02:49 Shouldn't it return 0 at the end if we reach it?
if __name__ == '__main__':
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698