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

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

Issue 360113003: Let test runner rerun failures to test for flakes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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
« tools/testrunner/local/execution.py ('K') | « tools/testrunner/objects/context.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 cfc522ea7380c1fef996c4491de1f39352553a16..374e242e14662235124b256c6552201c4cbbb65e 100644
--- a/tools/testrunner/objects/testcase.py
+++ b/tools/testrunner/objects/testcase.py
@@ -38,6 +38,7 @@ class TestCase(object):
self.output = None
self.id = None # int, used to map result back to TestCase instance
self.duration = None # assigned during execution
+ self.run = 1 # The nth time this test is executed.
def CopyAddingFlags(self, flags):
copy = TestCase(self.suite, self.path, self.flags + flags, self.dependency)
@@ -51,7 +52,7 @@ class TestCase(object):
"""
assert self.id is not None
return [self.suitename(), self.path, self.flags,
- self.dependency, list(self.outcomes or []), self.id]
+ self.dependency, list(self.outcomes or []), self.id, self.run]
Jakob Kummerow 2014/07/02 07:27:26 IIUC, |run| is always 1 when a test is packed for
Michael Achenbach 2014/07/02 08:06:33 Done.
@staticmethod
def UnpackTask(task):
@@ -60,6 +61,7 @@ class TestCase(object):
test = TestCase(str(task[0]), task[1], task[2], task[3])
test.outcomes = set(task[4])
test.id = task[5]
+ test.run = task[6]
Jakob Kummerow 2014/07/02 07:27:26 ...and simply fill in 1 here (or not set it at al
Michael Achenbach 2014/07/02 08:06:33 Done.
return test
def SetSuiteObject(self, suites):
« tools/testrunner/local/execution.py ('K') | « tools/testrunner/objects/context.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698