diff options
author | Brad King <brad.king@kitware.com> | 2019-10-29 18:45:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-29 19:10:12 (GMT) |
commit | 80c2c9d14cf1c1a8f162e119bd00d5f483a94af2 (patch) | |
tree | 273a15083c42453ee3265a3ce8263bf7a74a3e3e /Source/ctest.cxx | |
parent | 0187e522448c8fe92c15d4a983afac36950d1d59 (diff) | |
download | CMake-80c2c9d14cf1c1a8f162e119bd00d5f483a94af2.zip CMake-80c2c9d14cf1c1a8f162e119bd00d5f483a94af2.tar.gz CMake-80c2c9d14cf1c1a8f162e119bd00d5f483a94af2.tar.bz2 |
ctest: Add --repeat-until-pass option
Add an option to re-run tests if they fail. This will help tolerate
sporadic failures.
Issue: #17010
Co-Author: Ben Boeckel <ben.boeckel@kitware.com>
Co-Author: Chuck Atkins <chuck.atkins@kitware.com>
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r-- | Source/ctest.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx index 91ee598..f716d7a 100644 --- a/Source/ctest.cxx +++ b/Source/ctest.cxx @@ -99,8 +99,9 @@ static const char* cmDocumentationOptions[][2] = { { "-U, --union", "Take the Union of -I and -R" }, { "--rerun-failed", "Run only the tests that failed previously" }, { "--repeat-until-fail <n>", - "Require each test to run <n> " - "times without failing in order to pass" }, + "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" }, { "--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." }, |