ENH: fatal error if cvs update fails
This commit is contained in:
parent
1a11a2d0c0
commit
1d250298d0
@ -317,7 +317,14 @@ int cmCTestUpdateHandler::ProcessHandler()
|
|||||||
checkoutErrorMessages += ostr.str();
|
checkoutErrorMessages += ostr.str();
|
||||||
updateProducedError = true;
|
updateProducedError = true;
|
||||||
}
|
}
|
||||||
this->CTest->InitializeFromCommand(this->Command);
|
if(!this->CTest->InitializeFromCommand(this->Command))
|
||||||
|
{
|
||||||
|
cmCTestLog(this->CTest, HANDLER_OUTPUT,
|
||||||
|
" Fatal Error in initialize: "
|
||||||
|
<< std::endl);
|
||||||
|
cmSystemTools::SetFatalErrorOccured();
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
cmCTestLog(this->CTest, HANDLER_OUTPUT, " Updating the repository: "
|
cmCTestLog(this->CTest, HANDLER_OUTPUT, " Updating the repository: "
|
||||||
<< sourceDirectory << std::endl);
|
<< sourceDirectory << std::endl);
|
||||||
@ -531,6 +538,7 @@ int cmCTestUpdateHandler::ProcessHandler()
|
|||||||
{
|
{
|
||||||
cmCTestLog(this->CTest, ERROR_MESSAGE, "Cannot open log file"
|
cmCTestLog(this->CTest, ERROR_MESSAGE, "Cannot open log file"
|
||||||
<< std::endl);
|
<< std::endl);
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
std::string start_time = this->CTest->CurrentTime();
|
std::string start_time = this->CTest->CurrentTime();
|
||||||
double elapsed_time_start = cmSystemTools::GetTime();
|
double elapsed_time_start = cmSystemTools::GetTime();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user