mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
ctest_upload: Add QUIET option
This commit is contained in:
committed by
Brad King
parent
0b87b2a339
commit
ff1ddd2a73
@@ -26,6 +26,7 @@ cmCTestGenericHandler* cmCTestUploadCommand::InitializeHandler()
|
||||
}
|
||||
static_cast<cmCTestUploadHandler*>(handler)->SetFiles(this->Files);
|
||||
|
||||
handler->SetQuiet(this->Quiet);
|
||||
return handler;
|
||||
}
|
||||
|
||||
@@ -38,6 +39,12 @@ bool cmCTestUploadCommand::CheckArgumentKeyword(std::string const& arg)
|
||||
this->ArgumentDoing = ArgumentDoingFiles;
|
||||
return true;
|
||||
}
|
||||
if(arg == "QUIET")
|
||||
{
|
||||
this->ArgumentDoing = ArgumentDoingNone;
|
||||
this->Quiet = true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -64,8 +64,8 @@ int cmCTestUploadHandler::ProcessHandler()
|
||||
|
||||
for ( it = this->Files.begin(); it != this->Files.end(); it ++ )
|
||||
{
|
||||
cmCTestLog(this->CTest, OUTPUT,
|
||||
"\tUpload file: " << *it << std::endl);
|
||||
cmCTestOptionalLog(this->CTest, OUTPUT,
|
||||
"\tUpload file: " << *it << std::endl, this->Quiet);
|
||||
ofs << "<File filename=\"" << cmXMLSafe(*it) << "\">\n"
|
||||
<< "<Content encoding=\"base64\">\n";
|
||||
ofs << this->CTest->Base64EncodeFile(*it);
|
||||
|
||||
Reference in New Issue
Block a user