Merge pull request #1492 from Lotterleben/fix_1394

fix #1394: avoid superfluous re-run when specific section is selected
This commit is contained in:
Martin Hořeňovský
2019-01-18 16:46:40 +01:00
committed by GitHub
5 changed files with 85 additions and 3 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 ) {

View File

@@ -140,6 +140,8 @@ namespace TestCaseTracking {
bool isSectionTracker() const override;
bool isComplete() const override;
static SectionTracker& acquire( TrackerContext& ctx, NameAndLocation const& nameAndLocation );
void tryOpen();