Commit 1d250298 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: fatal error if cvs update fails

parent 1a11a2d0
......@@ -317,7 +317,14 @@ int cmCTestUpdateHandler::ProcessHandler()
checkoutErrorMessages += ostr.str();
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: "
<< sourceDirectory << std::endl);
......@@ -531,6 +538,7 @@ int cmCTestUpdateHandler::ProcessHandler()
{
cmCTestLog(this->CTest, ERROR_MESSAGE, "Cannot open log file"
<< std::endl);
return -1;
}
std::string start_time = this->CTest->CurrentTime();
double elapsed_time_start = cmSystemTools::GetTime();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment