summaryrefslogtreecommitdiff
path: root/Source/ctest.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-10-29 14:21:38 -0400
committerBrad King <brad.king@kitware.com>2019-10-29 15:14:36 -0400
commit39ac8b4eb5c5ea99cf1053bd37e76d811f5122fc (patch)
tree284a7da62ff3285b1809618e822dd1c693ec03dd /Source/ctest.cxx
parent80c2c9d14cf1c1a8f162e119bd00d5f483a94af2 (diff)
downloadcmake-39ac8b4eb5c5ea99cf1053bd37e76d811f5122fc.tar.gz
ctest: Add --repeat-after-timeout option
Add an option to re-run tests if they timeout. This will help tolerate sporadic timeouts on busy machines.
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r--Source/ctest.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx
index f716d7a941..2659e3071b 100644
--- a/Source/ctest.cxx
+++ b/Source/ctest.cxx
@@ -102,6 +102,8 @@ static const char* cmDocumentationOptions[][2] = {
"Require each test to run <n> times without failing in order to pass" },
{ "--repeat-until-pass <n>",
"Allow each test to run up to <n> times in order to pass" },
+ { "--repeat-after-timeout <n>",
+ "Allow each test to run up to <n> times if it times out" },
{ "--max-width <width>", "Set the max width for a test name to output" },
{ "--interactive-debug-mode [0|1]", "Set the interactive mode to 0 or 1." },
{ "--hardware-spec-file <file>", "Set the hardware spec file to use." },