summaryrefslogtreecommitdiff
path: root/Source/cmCTest.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-10-29 14:45:21 -0400
committerBrad King <brad.king@kitware.com>2019-10-29 15:10:12 -0400
commit80c2c9d14cf1c1a8f162e119bd00d5f483a94af2 (patch)
tree273a15083c42453ee3265a3ce8263bf7a74a3e3e /Source/cmCTest.h
parent0187e522448c8fe92c15d4a983afac36950d1d59 (diff)
downloadcmake-80c2c9d14cf1c1a8f162e119bd00d5f483a94af2.tar.gz
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/cmCTest.h')
-rw-r--r--Source/cmCTest.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h
index 82a6f4cbd3..c6b89281d7 100644
--- a/Source/cmCTest.h
+++ b/Source/cmCTest.h
@@ -433,8 +433,13 @@ public:
/** Return the number of times a test should be run */
int GetTestRepeat() const;
- /** Return true if test should run until fail */
- bool GetRepeatUntilFail() const;
+ enum class Rerun
+ {
+ Never,
+ UntilFail,
+ UntilPass,
+ };
+ Rerun GetRerunMode() const;
void GenerateSubprojectsOutput(cmXMLWriter& xml);
std::vector<std::string> GetLabelsForSubprojects();