diff options
author | Brad King <brad.king@kitware.com> | 2019-07-19 16:01:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-07-19 16:01:04 (GMT) |
commit | fc2a7c8b3fc95b90ff69b7bb4a16b216b8ac3671 (patch) | |
tree | 613c5944995f27a678d5c0e2df6316e488d1d838 | |
parent | 8d2299975393bb341d7afe8bdd200b8dbe3010e3 (diff) | |
parent | da79075c4de45095d8f9eca5d2cc76711b79341e (diff) | |
download | CMake-fc2a7c8b3fc95b90ff69b7bb4a16b216b8ac3671.zip CMake-fc2a7c8b3fc95b90ff69b7bb4a16b216b8ac3671.tar.gz CMake-fc2a7c8b3fc95b90ff69b7bb4a16b216b8ac3671.tar.bz2 |
Merge branch 'ctest-done-hash' into release-3.15
Merge-request: !3563
-rw-r--r-- | Source/CTest/cmCTestSubmitHandler.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/CTest/cmCTestSubmitHandler.cxx b/Source/CTest/cmCTestSubmitHandler.cxx index 1fa7988..54c4bae 100644 --- a/Source/CTest/cmCTestSubmitHandler.cxx +++ b/Source/CTest/cmCTestSubmitHandler.cxx @@ -266,15 +266,6 @@ bool cmCTestSubmitHandler::SubmitUsingHTTP( } } - upload_as += "&MD5="; - - if (cmSystemTools::IsOn(this->GetOption("InternalTest"))) { - upload_as += "bad_md5sum"; - } else { - upload_as += - cmSystemTools::ComputeFileHash(local_file, cmCryptoHash::AlgoMD5); - } - // Generate Done.xml right before it is submitted. // The reason for this is two-fold: // 1) It must be generated after some other part has been submitted @@ -286,6 +277,15 @@ bool cmCTestSubmitHandler::SubmitUsingHTTP( this->CTest->GenerateDoneFile(); } + upload_as += "&MD5="; + + if (cmSystemTools::IsOn(this->GetOption("InternalTest"))) { + upload_as += "bad_md5sum"; + } else { + upload_as += + cmSystemTools::ComputeFileHash(local_file, cmCryptoHash::AlgoMD5); + } + if (!cmSystemTools::FileExists(local_file)) { cmCTestLog(this->CTest, ERROR_MESSAGE, " Cannot find file: " << local_file << std::endl); |