AutoTest: Fix handling of data tags in test results

Avoid adding test functions again and put further data tags
directly below the respective test function.

Change-Id: I29775b836cc4584358ee67b5f07744986c6a6591
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2017-01-19 12:15:59 +01:00
parent e2b909c6b6
commit ae2c068e68
6 changed files with 15 additions and 3 deletions

View File

@@ -99,8 +99,7 @@ void TestResultItem::updateDescription(const QString &description)
void TestResultItem::updateResult()
{
if (m_testResult->result() != Result::MessageTestCaseStart
&& m_testResult->result() != Result::MessageIntermediate)
if (!TestResult::isMessageCaseStart(m_testResult->result()))
return;
Result::Type newResult = Result::MessageTestCaseSuccess;