mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 14:50:10 -06:00
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user