AutoTest: Fix handling of test output messages

Send all results after they have been created instead of
relying on having some further output that might send an
old result that had been created but not sent yet.

Change-Id: I0c64b702712509264ee5e86a6af15d6411839f43
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2019-05-27 09:07:40 +02:00
parent c1802108bf
commit c911be190f

View File

@@ -117,9 +117,6 @@ void BoostTestOutputReader::sendCompleteInformation()
void BoostTestOutputReader::handleMessageMatch(const QRegularExpressionMatch &match)
{
if (m_result != ResultType::Invalid)
sendCompleteInformation();
m_fileName = constructSourceFilePath(m_buildDir, match.captured(1));
m_lineNumber = match.captured(2).toInt();
@@ -176,6 +173,9 @@ void BoostTestOutputReader::handleMessageMatch(const QRegularExpressionMatch &ma
m_result = ResultType::Skip;
m_description = content;
}
if (m_result != ResultType::Invalid) // we got a new result
sendCompleteInformation();
}
void BoostTestOutputReader::processOutputLine(const QByteArray &outputLineWithNewLine)