aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Adele Zhou <adelez@google.com>2017-10-09 17:40:03 -0700
committerGravatar Adele Zhou <adelez@google.com>2017-10-10 11:44:01 -0700
commite757adc3520e39a3f8fbaffac66f6bd13efb27ca (patch)
tree21ae56d5309b25a7b18430e30a187319e04b5de6 /tools
parentb6142ef1a6dc70565f468346c7935f43dbcb55fa (diff)
Added allow_flakes flag and set to True by default.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/interop_matrix/run_interop_matrix_tests.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/interop_matrix/run_interop_matrix_tests.py b/tools/interop_matrix/run_interop_matrix_tests.py
index 510bc7124d..48c918d25d 100755
--- a/tools/interop_matrix/run_interop_matrix_tests.py
+++ b/tools/interop_matrix/run_interop_matrix_tests.py
@@ -68,6 +68,13 @@ argp.add_argument('--report_file',
default='report.xml',
help='The result file to create.')
+argp.add_argument('--allow_flakes',
+ default=False,
+ action='store_const',
+ const=True,
+ help=('Allow flaky tests to show as passing (re-runs failed '
+ 'tests up to five times)'))
+
args = argp.parse_args()
@@ -130,7 +137,8 @@ def find_test_cases(lang, release):
spec = jobset.JobSpec(cmdline=line,
shortname=shortname,
timeout_seconds=_TEST_TIMEOUT,
- shell=True)
+ shell=True,
+ flake_retries=5 if args.allow_flakes else 0)
job_spec_list.append(spec)
jobset.message('START',
'Loaded %s tests from %s' % (len(job_spec_list), testcases),