mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-01 12:18:36 -06:00
Merge topic 'issue-20955'
5a6c199069 ctest: Provide hints about inspecting test failures
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5552
This commit is contained in:
@@ -1017,6 +1017,17 @@ int cmCTest::ProcessSteps()
|
||||
}
|
||||
if (res != 0) {
|
||||
cmCTestLog(this, ERROR_MESSAGE, "Errors while running CTest" << std::endl);
|
||||
if (!this->Impl->OutputTestOutputOnTestFailure) {
|
||||
const std::string lastTestLog =
|
||||
this->GetBinaryDir() + "/Testing/Temporary/LastTest.log";
|
||||
cmCTestLog(this, ERROR_MESSAGE,
|
||||
"Output from these tests are in: " << lastTestLog
|
||||
<< std::endl);
|
||||
cmCTestLog(this, ERROR_MESSAGE,
|
||||
"Use \"--rerun-failed --output-on-failure\" to re-run the "
|
||||
"failed cases verbosely."
|
||||
<< std::endl);
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user