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ý authored and GitHub committed 2019-01-18 16:46:40 +01:00
commit 61e1ea9185
5 files changed
+85 -3

No files matched your search

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