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

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

Issue 2212333002: [test] Make test duplication more robust (Closed) Base URL: https://chromium.googlesource.com/v8/v8.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 | « tools/testrunner/local/testsuite.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 ad2a8dedafeda650bb834b1a0e17ecffd80b1578..00722d768b3b44ebed23a9af8ec2524a463b0da5 100644
--- a/tools/testrunner/objects/testcase.py
+++ b/tools/testrunner/objects/testcase.py
@@ -36,7 +36,7 @@ class TestCase(object):
self.flags = flags or [] # list of strings, flags specific to this test
self.variant = variant # name of the used testing variant
self.override_shell = override_shell
- self.outcomes = set([])
+ self.outcomes = frozenset([])
self.output = None
self.id = None # int, used to map result back to TestCase instance
self.duration = None # assigned during execution
@@ -45,7 +45,7 @@ class TestCase(object):
def CopyAddingFlags(self, variant, flags):
copy = TestCase(self.suite, self.path, variant, self.flags + flags,
self.override_shell)
- copy.outcomes = set(self.outcomes)
+ copy.outcomes = self.outcomes
return copy
def PackTask(self):
@@ -63,7 +63,7 @@ class TestCase(object):
"""Creates a new TestCase object based on packed task data."""
# For the order of the fields, refer to PackTask() above.
test = TestCase(str(task[0]), task[1], task[2], task[3], task[4])
- test.outcomes = set(task[5])
+ test.outcomes = frozenset(task[5])
test.id = task[6]
test.run = 1
return test
« no previous file with comments | « tools/testrunner/local/testsuite.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698