aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar adelez <adelez@google.com>2017-10-10 15:06:56 -0700
committerGravatar GitHub <noreply@github.com>2017-10-10 15:06:56 -0700
commitfbfb67110ac210e9f318d36ea19df097ba0e11f6 (patch)
treedc8c2f94876f9dbf48e15f4521e693470bf70f33
parent451d312c8029d5d47eb1fd3cac2a641f1235cf5d (diff)
parente757adc3520e39a3f8fbaffac66f6bd13efb27ca (diff)
Merge pull request #12921 from adelez/allow_flakes
Added allow_flakes flag and set to True by default.
-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),