summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/testing/suite.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/resmokelib/testing/suite.py')
-rw-r--r--buildscripts/resmokelib/testing/suite.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/buildscripts/resmokelib/testing/suite.py b/buildscripts/resmokelib/testing/suite.py
index 2910406eaf1..5de8bdd5855 100644
--- a/buildscripts/resmokelib/testing/suite.py
+++ b/buildscripts/resmokelib/testing/suite.py
@@ -166,6 +166,12 @@ class Suite(object): # pylint: disable=too-many-instance-attributes
"""Return the "test_kind" section of the YAML configuration."""
return self._suite_config["test_kind"]
+ def get_num_times_to_repeat_tests(self) -> int:
+ """Return the number of times to repeat tests."""
+ if self.options.num_repeat_tests:
+ return self.options.num_repeat_tests
+ return 1
+
@property
def options(self):
"""Get the options."""