Index: tools/testrunner/local/execution.py |
diff --git a/tools/testrunner/local/execution.py b/tools/testrunner/local/execution.py |
index a339eeb85d905402607a7e50f2795f192a91ba3f..a6dce636e1182b86c4952ee284c367b026aa3d17 100644 |
--- a/tools/testrunner/local/execution.py |
+++ b/tools/testrunner/local/execution.py |
@@ -104,9 +104,9 @@ class Runner(object): |
return Job(command, dep_command, test.id, timeout, self.context.verbose) |
def _MaybeRerun(self, pool, test): |
- if test.run <= self.context.rerun_failures_count + 1: |
+ if test.run <= self.context.rerun_failures_count: |
# Possibly rerun this test if its run count is below the maximum per |
- # test. +1 as the flag controls reruns not including the first run. |
+ # test. <= as the flag controls reruns not including the first run. |
if test.run == 1: |
# Count the overall number of reran tests on the first rerun. |
if self.reran_tests < self.context.rerun_failures_max: |