diff options
author | Zack Galbreath <zack.galbreath@kitware.com> | 2017-01-04 15:27:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-01-20 16:37:27 (GMT) |
commit | 5614a5cd1f7f8fe34f6b31c572476a2ddfd6d9ae (patch) | |
tree | fde1befc0e3198dc331b15ea861842c36c97f7df /Source/CTest/cmCTestSubmitCommand.cxx | |
parent | c628fd2fab273999e959aad00834369924dd9d06 (diff) | |
download | CMake-5614a5cd1f7f8fe34f6b31c572476a2ddfd6d9ae.zip CMake-5614a5cd1f7f8fe34f6b31c572476a2ddfd6d9ae.tar.gz CMake-5614a5cd1f7f8fe34f6b31c572476a2ddfd6d9ae.tar.bz2 |
ctest_submit: Allow RETRY_COUNT for CDASH_UPLOAD
Teach the CDASH_UPLOAD signature of ctest_submit() to honor the
RETRY_COUNT and RETRY_DELAY options.
Also teach HttpRequest() to honor the default 120 second timeout
for curl connections.
Diffstat (limited to 'Source/CTest/cmCTestSubmitCommand.cxx')
-rw-r--r-- | Source/CTest/cmCTestSubmitCommand.cxx | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/Source/CTest/cmCTestSubmitCommand.cxx b/Source/CTest/cmCTestSubmitCommand.cxx index 14b875f..5cf4ddc 100644 --- a/Source/CTest/cmCTestSubmitCommand.cxx +++ b/Source/CTest/cmCTestSubmitCommand.cxx @@ -157,6 +157,7 @@ bool cmCTestSubmitCommand::InitialPass(std::vector<std::string> const& args, bool cmCTestSubmitCommand::CheckArgumentKeyword(std::string const& arg) { if (this->CDashUpload) { + // Arguments specific to the CDASH_UPLOAD signature. if (arg == "CDASH_UPLOAD") { this->ArgumentDoing = ArgumentDoingCDashUpload; return true; @@ -167,7 +168,7 @@ bool cmCTestSubmitCommand::CheckArgumentKeyword(std::string const& arg) return true; } } else { - // Look for arguments specific to this command. + // Arguments that cannot be used with CDASH_UPLOAD. if (arg == "PARTS") { this->ArgumentDoing = ArgumentDoingParts; this->PartsMentioned = true; @@ -179,21 +180,21 @@ bool cmCTestSubmitCommand::CheckArgumentKeyword(std::string const& arg) this->FilesMentioned = true; return true; } + } + // Arguments used by both modes. + if (arg == "RETRY_COUNT") { + this->ArgumentDoing = ArgumentDoingRetryCount; + return true; + } - if (arg == "RETRY_COUNT") { - this->ArgumentDoing = ArgumentDoingRetryCount; - return true; - } - - if (arg == "RETRY_DELAY") { - this->ArgumentDoing = ArgumentDoingRetryDelay; - return true; - } + if (arg == "RETRY_DELAY") { + this->ArgumentDoing = ArgumentDoingRetryDelay; + return true; + } - if (arg == "INTERNAL_TEST_CHECKSUM") { - this->InternalTest = true; - return true; - } + if (arg == "INTERNAL_TEST_CHECKSUM") { + this->InternalTest = true; + return true; } // Look for other arguments. |