diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2020-05-26 11:48:41 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-05-27 06:43:01 -0400 |
commit | bbb62dcc72394316f151ead984a9f7cdc258e98f (patch) | |
tree | a1b33faa3fe6d2f5f64002e6d3a3df97313d051a /Source | |
parent | c5032519974ae8649036f0b85a7100632dc064a5 (diff) | |
download | cmake-bbb62dcc72394316f151ead984a9f7cdc258e98f.tar.gz |
CTest: Make sure NOT_RUN tests show up in the failed test log
Issue: #20543
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CTest/cmCTestRunTest.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestRunTest.cxx b/Source/CTest/cmCTestRunTest.cxx index ec549606fd..58289ea50d 100644 --- a/Source/CTest/cmCTestRunTest.cxx +++ b/Source/CTest/cmCTestRunTest.cxx @@ -340,6 +340,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 |