ctest_update: Report failure in Update.xml

Report in <UpdateReturnStatus> when the update command line returns
non-zero.  Otherwise the failure may be silently ignored since the error
was previously recorded only in the local log file.
This commit is contained in:
Brad King 2010-04-27 14:10:06 -04:00
parent 32856c1be4
commit 1da611fd46

View File

@ -306,6 +306,7 @@ int cmCTestUpdateHandler::ProcessHandler()
} }
if(!updated) if(!updated)
{ {
os << "Update command failed:\n" << vc->GetUpdateCommandLine();
cmCTestLog(this->CTest, ERROR_MESSAGE, " Update command failed: " cmCTestLog(this->CTest, ERROR_MESSAGE, " Update command failed: "
<< vc->GetUpdateCommandLine() << "\n"); << vc->GetUpdateCommandLine() << "\n");
} }