Merge branch 'CTestScheduler'
This commit is contained in:
commit
6068651cf7
|
@ -453,6 +453,9 @@ void cmCTestMultiProcessHandler::CreateTestCostList()
|
||||||
for(TestMap::iterator i = this->Tests.begin();
|
for(TestMap::iterator i = this->Tests.begin();
|
||||||
i != this->Tests.end(); ++i)
|
i != this->Tests.end(); ++i)
|
||||||
{
|
{
|
||||||
|
//We only want to schedule them by cost in a parallel situation
|
||||||
|
if(this->ParallelLevel > 1)
|
||||||
|
{
|
||||||
std::string name = this->Properties[i->first]->Name;
|
std::string name = this->Properties[i->first]->Name;
|
||||||
if(std::find(this->LastTestsFailed.begin(), this->LastTestsFailed.end(),
|
if(std::find(this->LastTestsFailed.begin(), this->LastTestsFailed.end(),
|
||||||
name) != this->LastTestsFailed.end())
|
name) != this->LastTestsFailed.end())
|
||||||
|
@ -464,6 +467,12 @@ void cmCTestMultiProcessHandler::CreateTestCostList()
|
||||||
this->TestCosts[this->Properties[i->first]->Cost].insert(i->first);
|
this->TestCosts[this->Properties[i->first]->Cost].insert(i->first);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else //we ignore their cost
|
||||||
|
{
|
||||||
|
this->TestCosts[this->Tests.size()
|
||||||
|
- this->Properties[i->first]->Index].insert(i->first);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------
|
//---------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue