ENH: allow cdash not to trigger
This commit is contained in:
parent
b548b34a11
commit
22dc873ef0
|
@ -14,6 +14,7 @@ Site: @SITE@
|
|||
BuildName: @BUILDNAME@
|
||||
|
||||
# Submission information
|
||||
IsCDash: @CTEST_DROP_SITE_CDASH@
|
||||
DropSite: @DROP_SITE@
|
||||
DropLocation: @DROP_LOCATION@
|
||||
DropSiteUser: @DROP_SITE_USER@
|
||||
|
|
|
@ -68,11 +68,13 @@ cmCTestSubmitHandler::cmCTestSubmitHandler() : HTTPProxy(), FTPProxy()
|
|||
|
||||
this->FTPProxy = "";
|
||||
this->FTPProxyType = 0;
|
||||
this->CDash = false;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void cmCTestSubmitHandler::Initialize()
|
||||
{
|
||||
this->CDash = false;
|
||||
this->Superclass::Initialize();
|
||||
this->HTTPProxy = "";
|
||||
this->HTTPProxyType = 0;
|
||||
|
@ -755,6 +757,13 @@ bool cmCTestSubmitHandler::SubmitUsingXMLRPC(const cmStdString& localprefix,
|
|||
//----------------------------------------------------------------------------
|
||||
int cmCTestSubmitHandler::ProcessHandler()
|
||||
{
|
||||
std::string iscdash = this->CTest->GetCTestConfiguration("IsCDash");
|
||||
// cdash does not need to trigger so just return true
|
||||
if(iscdash.size())
|
||||
{
|
||||
this->CDash = true;
|
||||
}
|
||||
|
||||
const std::string &buildDirectory
|
||||
= this->CTest->GetCTestConfiguration("BuildDirectory");
|
||||
if ( buildDirectory.size() == 0 )
|
||||
|
@ -947,6 +956,8 @@ int cmCTestSubmitHandler::ProcessHandler()
|
|||
ofs << " Problems when submitting via FTP" << std::endl;
|
||||
return -1;
|
||||
}
|
||||
if(!this->CDash)
|
||||
{
|
||||
cmCTestLog(this->CTest, HANDLER_OUTPUT, " Using HTTP trigger method"
|
||||
<< std::endl
|
||||
<< " Trigger site: "
|
||||
|
@ -965,6 +976,7 @@ int cmCTestSubmitHandler::ProcessHandler()
|
|||
ofs << " Submission successful" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
else if ( this->CTest->GetCTestConfiguration("DropMethod") == "http" )
|
||||
{
|
||||
ofs << "Using drop method: HTTP" << std::endl;
|
||||
|
@ -998,6 +1010,8 @@ int cmCTestSubmitHandler::ProcessHandler()
|
|||
ofs << " Problems when submitting via HTTP" << std::endl;
|
||||
return -1;
|
||||
}
|
||||
if(!this->CDash)
|
||||
{
|
||||
cmCTestLog(this->CTest, HANDLER_OUTPUT, " Using HTTP trigger method"
|
||||
<< std::endl
|
||||
<< " Trigger site: "
|
||||
|
@ -1011,6 +1025,7 @@ int cmCTestSubmitHandler::ProcessHandler()
|
|||
ofs << " Problems when triggering via HTTP" << std::endl;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
cmCTestLog(this->CTest, HANDLER_OUTPUT, " Submission successful"
|
||||
<< std::endl);
|
||||
ofs << " Submission successful" << std::endl;
|
||||
|
|
|
@ -77,6 +77,7 @@ private:
|
|||
cmStdString FTPProxy;
|
||||
int FTPProxyType;
|
||||
std::ostream* LogFile;
|
||||
bool CDash;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue