diff --git a/tools/test.py b/tools/test.py index eeb4aa621f5..e237722b268 100755 --- a/tools/test.py +++ b/tools/test.py @@ -75,7 +75,9 @@ class ProgressIndicator(object): self.remaining = len(cases) self.total = len(cases) self.failed = [ ] + self.flaky_failed = [ ] self.crashed = 0 + self.flaky_crashed = 0 self.lock = threading.Lock() self.shutdown_event = threading.Event() @@ -143,9 +145,14 @@ class ProgressIndicator(object): return self.lock.acquire() if output.UnexpectedOutput(): - self.failed.append(output) - if output.HasCrashed(): - self.crashed += 1 + if FLAKY in output.test.outcomes and self.flaky_tests_mode == DONTCARE: + self.flaky_failed.append(output) + if output.HasCrashed(): + self.flaky_crashed += 1 + else: + self.failed.append(output) + if output.HasCrashed(): + self.crashed += 1 else: self.succeeded += 1 self.remaining -= 1