diff options
author | Brad King <brad.king@kitware.com> | 2019-10-29 18:21:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-29 19:14:36 (GMT) |
commit | 39ac8b4eb5c5ea99cf1053bd37e76d811f5122fc (patch) | |
tree | 284a7da62ff3285b1809618e822dd1c693ec03dd /Source/ctest.cxx | |
parent | 80c2c9d14cf1c1a8f162e119bd00d5f483a94af2 (diff) | |
download | CMake-39ac8b4eb5c5ea99cf1053bd37e76d811f5122fc.zip CMake-39ac8b4eb5c5ea99cf1053bd37e76d811f5122fc.tar.gz CMake-39ac8b4eb5c5ea99cf1053bd37e76d811f5122fc.tar.bz2 |
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.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx index f716d7a..2659e30 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." }, |