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

Unified Diff: tools/testrunner/objects/testcase.py

Issue 1469833002: [test-runner] Move test case processing beyond the multi-process boundary. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review Created 5 years, 1 month 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/network/endpoint.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testrunner/objects/testcase.py
diff --git a/tools/testrunner/objects/testcase.py b/tools/testrunner/objects/testcase.py
index 0ab06361b178546c232f4883bd57d28dd1e53f07..fa2265c0703f1fecd028fde43b988d3cc54ebf01 100644
--- a/tools/testrunner/objects/testcase.py
+++ b/tools/testrunner/objects/testcase.py
@@ -86,3 +86,11 @@ class TestCase(object):
def GetLabel(self):
return self.suitename() + "/" + self.suite.CommonTestName(self)
+
+ def __getstate__(self):
+ """Representation to pickle test cases.
+
+ The original suite won't be sent beyond process boundaries. Instead
+ send the name only and retrieve a process-local suite later.
+ """
+ return dict(self.__dict__, suite=self.suite.name)
« no previous file with comments | « tools/testrunner/network/endpoint.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698