Added allow_flakes flag and set to True by default.

pull/12921/head
Adele Zhou 7 years ago
parent b6142ef1a6
commit e757adc352
  1. 10
      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),

Loading…
Cancel
Save