ENH: make sure there is an error and notify user if nightly start time not set
This commit is contained in:
parent
e8f3b5ff00
commit
65ae576c01
@ -16,6 +16,7 @@
|
|||||||
=========================================================================*/
|
=========================================================================*/
|
||||||
|
|
||||||
#include "cmCTestGenericHandler.h"
|
#include "cmCTestGenericHandler.h"
|
||||||
|
#include "cmSystemTools.h"
|
||||||
|
|
||||||
#include "cmCTest.h"
|
#include "cmCTest.h"
|
||||||
|
|
||||||
@ -118,7 +119,15 @@ bool cmCTestGenericHandler::StartResultingXML(const char* name,
|
|||||||
{
|
{
|
||||||
ostr << "_" << this->SubmitIndex;
|
ostr << "_" << this->SubmitIndex;
|
||||||
}
|
}
|
||||||
ostr << ".xml";
|
ostr << ".xml";
|
||||||
|
if(this->CTest->GetCurrentTag().empty())
|
||||||
|
{
|
||||||
|
cmCTestLog(this->CTest, ERROR_MESSAGE,
|
||||||
|
"Current Tag empty, this may mean"
|
||||||
|
" NightlStartTime was not set correctly." << std::endl);
|
||||||
|
cmSystemTools::SetFatalErrorOccured();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if( !this->CTest->OpenOutputFile(this->CTest->GetCurrentTag(),
|
if( !this->CTest->OpenOutputFile(this->CTest->GetCurrentTag(),
|
||||||
ostr.str().c_str(), xofs, true) )
|
ostr.str().c_str(), xofs, true) )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user