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

Unified Diff: mojo/tools/mojob.py

Issue 1867563003: Go system tests: Sets the environment variable GODEBUG=cgocheck=2. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 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 | « mojo/tools/get_test_list.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/mojob.py
diff --git a/mojo/tools/mojob.py b/mojo/tools/mojob.py
index ee0c871de7e13154a3c6e89711bbf417b2adea61..b0f4fe0ad0203df5804be395603521d091c8f696 100755
--- a/mojo/tools/mojob.py
+++ b/mojo/tools/mojob.py
@@ -185,7 +185,10 @@ def _run_tests(config, test_types):
continue
_logger.info('Starting: %s' % ' '.join(entry['command']))
- exit_code = subprocess.call(entry['command'])
+ env = os.environ
+ if 'env' in entry and entry['env'] is not None:
+ env.update(entry['env'])
+ exit_code = subprocess.call(entry['command'], env=env)
_logger.info('Completed: %s' % ' '.join(entry['command']))
if exit_code:
if not final_exit_code:
« no previous file with comments | « mojo/tools/get_test_list.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698