diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2010-06-03 14:34:34 (GMT) |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2010-06-03 14:34:34 (GMT) |
commit | e525649a4e9f2578c41593b56f9af4b4b7719984 (patch) | |
tree | 46092e3926a2ff9bee3a2038f495fc0992e8635f /Source/CTest/cmCTestSubmitCommand.cxx | |
parent | 7f619608d50cabee8718d78427d560531a3b1ea1 (diff) | |
download | CMake-e525649a4e9f2578c41593b56f9af4b4b7719984.zip CMake-e525649a4e9f2578c41593b56f9af4b4b7719984.tar.gz CMake-e525649a4e9f2578c41593b56f9af4b4b7719984.tar.bz2 |
Checksums on CTest submit files, and retry timed out submissions.
Diffstat (limited to 'Source/CTest/cmCTestSubmitCommand.cxx')
-rw-r--r-- | Source/CTest/cmCTestSubmitCommand.cxx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestSubmitCommand.cxx b/Source/CTest/cmCTestSubmitCommand.cxx index d1226da..6a45d58 100644 --- a/Source/CTest/cmCTestSubmitCommand.cxx +++ b/Source/CTest/cmCTestSubmitCommand.cxx @@ -147,6 +147,11 @@ cmCTestGenericHandler* cmCTestSubmitCommand::InitializeHandler() static_cast<cmCTestSubmitHandler*>(handler)->SelectParts(this->Parts); } + static_cast<cmCTestSubmitHandler*>(handler)->SetOption("RetryTime", + this->RetryDelay.c_str()); + static_cast<cmCTestSubmitHandler*>(handler)->SetOption("RetryCount", + this->RetryCount.c_str()); + return handler; } @@ -169,6 +174,18 @@ bool cmCTestSubmitCommand::CheckArgumentKeyword(std::string const& arg) return true; } + if(arg == "RETRY_COUNT") + { + this->ArgumentDoing = ArgumentDoingRetryCount; + return true; + } + + if(arg == "RETRY_DELAY") + { + this->ArgumentDoing = ArgumentDoingRetryDelay; + return true; + } + // Look for other arguments. return this->Superclass::CheckArgumentKeyword(arg); } @@ -213,6 +230,16 @@ bool cmCTestSubmitCommand::CheckArgumentValue(std::string const& arg) return true; } + if(this->ArgumentDoing == ArgumentDoingRetryCount) + { + this->RetryCount = arg; + } + + if(this->ArgumentDoing == ArgumentDoingRetryDelay) + { + this->RetryDelay = arg; + } + // Look for other arguments. return this->Superclass::CheckArgumentValue(arg); } |