summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-01-12 02:47:12 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-01-12 02:47:12 (GMT)
commitb7308e8f6d5df18b7dbc65b5d536ffad3e41e9c9 (patch)
tree0ea084d7ff3d58c055651d8b99b82ebcb8482993 /Source
parent6beecfa3de806bf54de02d0a20c76c851e07a188 (diff)
downloadCMake-b7308e8f6d5df18b7dbc65b5d536ffad3e41e9c9.zip
CMake-b7308e8f6d5df18b7dbc65b5d536ffad3e41e9c9.tar.gz
CMake-b7308e8f6d5df18b7dbc65b5d536ffad3e41e9c9.tar.bz2
Fix time output and add triggering
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCTest.cxx17
1 files changed, 15 insertions, 2 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index df64104..29083b6 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -44,7 +44,12 @@ static std::string CleanString(std::string str)
static std::string CurrentTime()
{
time_t currenttime = time(0);
- return ::CleanString(ctime(&currenttime));
+ struct tm* t = localtime(&currenttime);
+ //return ::CleanString(ctime(&currenttime));
+ char current_time[1024];
+ strftime(current_time, 1000, "%a %b %e %T %Z %Y", t);
+ //std::cout << "Current_Time: " << current_time << std::endl;
+ return ::CleanString(current_time);
}
static const char* cmCTestErrorMatches[] = {
@@ -1399,7 +1404,15 @@ int cmCTest::SubmitResults()
m_DartConfiguration["DropSitePassword"] + "@" +
m_DartConfiguration["DropSite"] +
m_DartConfiguration["DropLocation"];
- submit.SubmitUsingFTP(m_ToplevelPath+"/Testing/CDart", files, prefix, url);
+ if ( !submit.SubmitUsingFTP(m_ToplevelPath+"/Testing/CDart", files, prefix, url) )
+ {
+ return 0;
+ }
+ if ( !submit.TriggerUsingHTTP(files, prefix, m_DartConfiguration["TriggerSite"]) )
+ {
+ return 0;
+ }
+ return 1;
}
else
{