| Index: ios/build/bots/scripts/test_runner.py
|
| diff --git a/ios/build/bots/scripts/test_runner.py b/ios/build/bots/scripts/test_runner.py
|
| index 23d612487974feff00c7262ff0c643887d9ed18d..86392e85b2e0df7b242bfe35b207694d12a87272 100644
|
| --- a/ios/build/bots/scripts/test_runner.py
|
| +++ b/ios/build/bots/scripts/test_runner.py
|
| @@ -376,10 +376,13 @@ class TestRunner(object):
|
| print '%s tests failed and will be retried.' % len(failed)
|
| print
|
| for i in xrange(self.retries):
|
| - for test in failed:
|
| + for test in failed.keys():
|
| print 'Retry #%s for %s.' % (i + 1, test)
|
| print
|
| - self._run(self.get_launch_command(test_filter=[test]))
|
| + result = self._run(self.get_launch_command(test_filter=[test]))
|
| + # If the test passed on retry, consider it flake instead of failure.
|
| + if test in result.passed_tests:
|
| + flaked[test] = failed.pop(test)
|
|
|
| # Build test_results.json.
|
| self.test_results['interrupted'] = result.crashed
|
|
|