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:
parent
32856c1be4
commit
1da611fd46
@ -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");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user