BUG: Reset file submission list on test restart
When running in script mode it is possible to run multiple separate dashboard submissions in one cmCTest instance. The recent refactoring of file submission lists into parts failed to clear the submission lists when starting a new dashboard (ctest_start or ctest_update). Only the unused old submission set was cleared. This fixes the refactored version to remove the old submission set completely and also clear the part-wise lists.
This commit is contained in:
parent
6ae2f8e7ee
commit
5527ca5524
|
@ -488,7 +488,10 @@ bool cmCTest::InitializeFromCommand(cmCTestCommand* command, bool first)
|
|||
= this->GetCTestConfiguration("SourceDirectory").c_str();
|
||||
std::string bld_dir = this->GetCTestConfiguration("BuildDirectory").c_str();
|
||||
this->DartVersion = 1;
|
||||
this->SubmitFiles.clear();
|
||||
for(Part p = PartStart; p != PartCount; p = Part(p+1))
|
||||
{
|
||||
this->Parts[p].SubmitFiles.clear();
|
||||
}
|
||||
|
||||
cmMakefile* mf = command->GetMakefile();
|
||||
std::string fname = src_dir;
|
||||
|
|
|
@ -478,7 +478,6 @@ private:
|
|||
|
||||
int DartVersion;
|
||||
|
||||
std::set<cmStdString> SubmitFiles;
|
||||
std::vector<cmStdString> InitialCommandLineArguments;
|
||||
|
||||
int SubmitIndex;
|
||||
|
|
Loading…
Reference in New Issue