AutoTest: Redo reporting of disabled tests

Provide a proper way of reporting disabled tests instead
of the hacky one.

Change-Id: Id3a775d57ac20c9db8ad0f504cb708021117aa2f
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2019-03-20 09:03:11 +01:00
parent dac8262aeb
commit 19f2da8048
8 changed files with 10 additions and 10 deletions

View File

@@ -92,12 +92,7 @@ void GTestOutputReader::processOutputLine(const QByteArray &outputLineWithNewLin
reportResult(testResult);
m_description.clear();
} else if (disabledTests.exactMatch(line)) {
TestResultPtr testResult = TestResultPtr(new GTestResult(m_projectFile));
testResult->setResult(Result::MessageDisabledTests);
int disabled = disabledTests.cap(1).toInt();
testResult->setDescription(tr("You have %n disabled test(s).", nullptr, disabled));
testResult->setLine(disabled); // misuse line property to hold number of disabled
reportResult(testResult);
m_disabled = disabledTests.cap(1).toInt();
m_description.clear();
}
return;