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

Unified Diff: tools/bots/bot.py

Issue 15741006: Add chromeOnAndroid support to the buildbot annotated steps scripts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | tools/bots/compiler.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/bot.py
diff --git a/tools/bots/bot.py b/tools/bots/bot.py
index a050b428e73b927cfe1b93dea90b69bc4d861716..92fec5c46e9b74508077d90a5bce84ee2713254f 100644
--- a/tools/bots/bot.py
+++ b/tools/bots/bot.py
@@ -17,9 +17,6 @@ import sys
DART_PATH = dirname(dirname(dirname(abspath(__file__))))
-NO_COLOR_ENV = dict(os.environ)
-NO_COLOR_ENV['TERM'] = 'nocolor'
-
BUILDER_NAME = 'BUILDBOT_BUILDERNAME'
BUILDER_CLOBBER = 'BUILDBOT_CLOBBER'
@@ -229,7 +226,10 @@ def RunProcess(command):
If a non-zero exit code is returned, raises an OSError with errno as the exit
code.
"""
- exit_code = subprocess.call(command, env=NO_COLOR_ENV)
+ no_color_env = dict(os.environ)
+ no_color_env['TERM'] = 'nocolor'
+
+ exit_code = subprocess.call(command, env=no_color_env)
if exit_code != 0:
raise OSError(exit_code)
« no previous file with comments | « no previous file | tools/bots/compiler.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698