BUG: Use BuildDirectory from the DartConfiguration information. Also, Make missing coverage information not make ctest fail
This commit is contained in:
parent
d5f31292b2
commit
61a4c12ce6
|
@ -251,7 +251,7 @@ int cmCTestCoverageHandler::ProcessHandler()
|
||||||
|
|
||||||
if ( files.size() == 0 )
|
if ( files.size() == 0 )
|
||||||
{
|
{
|
||||||
cmCTestLog(this->CTest, ERROR_MESSAGE, " Cannot find any coverage files."
|
cmCTestLog(this->CTest, WARNING, " Cannot find any coverage files. Ignoring Coverage request."
|
||||||
<< std::endl);
|
<< std::endl);
|
||||||
// No coverage files is a valid thing, so the exit code is 0
|
// No coverage files is a valid thing, so the exit code is 0
|
||||||
cmSystemTools::ChangeDirectory(currentDirectory.c_str());
|
cmSystemTools::ChangeDirectory(currentDirectory.c_str());
|
||||||
|
|
|
@ -568,6 +568,11 @@ bool cmCTest::UpdateCTestConfiguration()
|
||||||
}
|
}
|
||||||
fin.close();
|
fin.close();
|
||||||
}
|
}
|
||||||
|
if ( !this->GetCTestConfiguration("BuildDirectory").empty() )
|
||||||
|
{
|
||||||
|
this->BinaryDir = this->GetCTestConfiguration("BuildDirectory");
|
||||||
|
cmSystemTools::ChangeDirectory(this->BinaryDir.c_str());
|
||||||
|
}
|
||||||
this->TimeOut = atoi(this->GetCTestConfiguration("TimeOut").c_str());
|
this->TimeOut = atoi(this->GetCTestConfiguration("TimeOut").c_str());
|
||||||
if ( this->ProduceXML )
|
if ( this->ProduceXML )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue