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

Unified Diff: tools/bots/bot.py

Issue 2231073002: Change SDK builder bot to use sysroots when compiling (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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/dart_sdk.py » ('j') | tools/bots/dart_sdk.py » ('J')
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 cfd90760bf24227ac5451950224c34f8590c41de..b24fe74139bd1bc9aaa559ab9e3fc7ffe251d5cf 100644
--- a/tools/bots/bot.py
+++ b/tools/bots/bot.py
@@ -271,14 +271,17 @@ def RunTestRunner(build_info, path):
RunProcess(args)
-def RunProcess(command):
+def RunProcess(command, env=None):
"""
Runs command.
If a non-zero exit code is returned, raises an OSError with errno as the exit
code.
"""
- no_color_env = dict(os.environ)
+ if env is None:
+ no_color_env = dict(os.environ)
+ else:
+ no_color_env = env
no_color_env['TERM'] = 'nocolor'
exit_code = subprocess.call(command, env=no_color_env)
« no previous file with comments | « no previous file | tools/bots/dart_sdk.py » ('j') | tools/bots/dart_sdk.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698