AutoTest: Fix summary part III

Amends 479f6c8.

Change-Id: I3bd7a789eef8d53610f87ccaafa43c921ff1e23f
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2020-10-07 06:53:14 +02:00
parent 33c3fe2c67
commit ac0ae2f1eb

View File

@@ -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);