Avoid superfluous re-run when specific section is selected

Fixes #1394
This commit is contained in:
Lotte Steenbrink 2019-01-07 16:40:23 +01:00 committed by Martin Hořeňovský
parent c1720d0c42
commit d084162b2f
5 changed files with 57 additions and 0 deletions

View file

@ -190,6 +190,17 @@ namespace TestCaseTracking {
}
}
bool SectionTracker::isComplete() const {
bool complete = true;
if ((m_filters.empty() || m_filters[0] == "") ||
std::find(m_filters.begin(), m_filters.end(),
m_nameAndLocation.name) != m_filters.end())
complete = TrackerBase::isComplete();
return complete;
}
bool SectionTracker::isSectionTracker() const { return true; }
SectionTracker& SectionTracker::acquire( TrackerContext& ctx, NameAndLocation const& nameAndLocation ) {