summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestRunTest.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-05-27 10:45:39 (GMT)
committerBrad King <brad.king@kitware.com>2020-05-27 10:45:39 (GMT)
commit0a74d7c2b84c9c8f87f4d821d3f0cd5bd8a7f479 (patch)
treebe63ba6b56160a20e8c27b9681566b6156e7abb5 /Source/CTest/cmCTestRunTest.cxx
parent614e93c563c977b68e37399d09d28d58672166d4 (diff)
parentbbb62dcc72394316f151ead984a9f7cdc258e98f (diff)
downloadCMake-0a74d7c2b84c9c8f87f4d821d3f0cd5bd8a7f479.zip
CMake-0a74d7c2b84c9c8f87f4d821d3f0cd5bd8a7f479.tar.gz
CMake-0a74d7c2b84c9c8f87f4d821d3f0cd5bd8a7f479.tar.bz2
Merge branch 'backport-ctest-repeat-notrun' into ctest-repeat-notrun
Diffstat (limited to 'Source/CTest/cmCTestRunTest.cxx')
-rw-r--r--Source/CTest/cmCTestRunTest.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestRunTest.cxx b/Source/CTest/cmCTestRunTest.cxx
index ba7d47e..2c8e385 100644
--- a/Source/CTest/cmCTestRunTest.cxx
+++ b/Source/CTest/cmCTestRunTest.cxx
@@ -344,6 +344,11 @@ bool cmCTestRunTest::NeedsToRepeat()
if (this->NumberOfRunsLeft == 0) {
return false;
}
+ // If a test is marked as NOT_RUN it will not be repeated
+ // no matter the repeat settings, so just record it as-is.
+ if (this->TestResult.Status == cmCTestTestHandler::NOT_RUN) {
+ return false;
+ }
// if number of runs left is not 0, and we are running until
// we find a failed (or passed) test, then return true so the test can be
// restarted