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

Unified Diff: tools/testrunner/local/execution.py

Issue 2813863002: Reland of [date] Add ICU backend for timezone info behind a flag (Closed)
Patch Set: Skip tests on noi18n Created 3 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 | « tools/testrunner/local/commands.py ('k') | tools/testrunner/objects/testcase.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testrunner/local/execution.py
diff --git a/tools/testrunner/local/execution.py b/tools/testrunner/local/execution.py
index 6adfd09b91b61faa27fad0ed8d42d34959401126..d5b519aadbdc501fb1a170dac4ff016aaf517e6d 100644
--- a/tools/testrunner/local/execution.py
+++ b/tools/testrunner/local/execution.py
@@ -49,11 +49,12 @@ TEST_DIR = os.path.join(BASE_DIR, "test")
class Instructions(object):
- def __init__(self, command, test_id, timeout, verbose):
+ def __init__(self, command, test_id, timeout, verbose, env):
self.command = command
self.id = test_id
self.timeout = timeout
self.verbose = verbose
+ self.env = env
# Structure that keeps global information per worker process.
@@ -111,7 +112,7 @@ def _GetInstructions(test, context):
# the like.
if statusfile.IsSlow(test.outcomes or [statusfile.PASS]):
timeout *= 2
- return Instructions(command, test.id, timeout, context.verbose)
+ return Instructions(command, test.id, timeout, context.verbose, test.env)
class Job(object):
@@ -178,7 +179,8 @@ class TestJob(Job):
return SetupProblem(e, self.test)
start_time = time.time()
- output = commands.Execute(instr.command, instr.verbose, instr.timeout)
+ output = commands.Execute(instr.command, instr.verbose, instr.timeout,
+ instr.env)
self._rename_coverage_data(output, process_context.context)
return (instr.id, output, time.time() - start_time)
« no previous file with comments | « tools/testrunner/local/commands.py ('k') | tools/testrunner/objects/testcase.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698