summaryrefslogtreecommitdiff
path: root/deps/v8/tools/testrunner/local/execution.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/tools/testrunner/local/execution.py')
-rw-r--r--deps/v8/tools/testrunner/local/execution.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/deps/v8/tools/testrunner/local/execution.py b/deps/v8/tools/testrunner/local/execution.py
index d5b519aadb..dc55129a14 100644
--- a/deps/v8/tools/testrunner/local/execution.py
+++ b/deps/v8/tools/testrunner/local/execution.py
@@ -62,17 +62,18 @@ ProcessContext = collections.namedtuple(
"process_context", ["suites", "context"])
-def MakeProcessContext(context):
+def MakeProcessContext(context, suite_names):
"""Generate a process-local context.
This reloads all suites per process and stores the global context.
Args:
context: The global context from the test runner.
+ suite_names (list of str): Suite names as loaded by the parent process.
+ Load the same suites in each subprocess.
"""
- suite_paths = utils.GetSuitePaths(TEST_DIR)
suites = {}
- for root in suite_paths:
+ for root in suite_names:
# Don't reinitialize global state as this is concurrently called from
# different processes.
suite = testsuite.TestSuite.LoadTestSuite(
@@ -198,7 +199,8 @@ class Runner(object):
self.perfdata = self.perf_data_manager.GetStore(context.arch, context.mode)
self.perf_failures = False
self.printed_allocations = False
- self.tests = [ t for s in suites for t in s.tests ]
+ self.tests = [t for s in suites for t in s.tests]
+ self.suite_names = [s.name for s in suites]
# Always pre-sort by status file, slowest tests first.
slow_key = lambda t: statusfile.IsSlow(t.outcomes)
@@ -353,7 +355,7 @@ class Runner(object):
fn=RunTest,
gen=gen_tests(),
process_context_fn=MakeProcessContext,
- process_context_args=[self.context],
+ process_context_args=[self.context, self.suite_names],
)
for result in it:
if result.heartbeat: