forked from qt-creator/qt-creator
AutoTest: Fix summary part III
Amends 479f6c8
.
Change-Id: I3bd7a789eef8d53610f87ccaafa43c921ff1e23f
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -376,7 +376,7 @@ int TestResultModel::resultTypeCount(ResultType type) const
|
||||
{
|
||||
int result = 0;
|
||||
|
||||
for (const auto &id : m_reportedSummary.keys()) {
|
||||
for (const auto &id : m_testResultCount.keys()) {
|
||||
// if we got a result count from the framework prefer that over our counted results
|
||||
int reported = m_reportedSummary[id].value(type);
|
||||
result += reported != 0 ? reported : m_testResultCount.value(id).value(type);
|
||||
|
Reference in New Issue
Block a user