Autotest: Fix plain text parsing for BFAIL/BPASS

All these outputs in incidentType2String() [1] are seven
characters long.

[1] http://code.qt.io/cgit/qt/qtbase.git/tree/src/testlib/qplaintestlogger.cpp#n77

Change-Id: I840b4c83fedcece5b213cad82d4fd660c7f927bc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Andre Hartmann
2019-01-27 12:53:57 +01:00
committed by André Hartmann
parent cad9da05fd
commit 8b5b12c381

View File

@@ -352,7 +352,7 @@ void QtTestOutputReader::processPlainTextOutput(const QByteArray &outputLineWith
static QRegExp summary("^Totals: \\d+ passed, \\d+ failed, \\d+ skipped(, \\d+ blacklisted)?$"); static QRegExp summary("^Totals: \\d+ passed, \\d+ failed, \\d+ skipped(, \\d+ blacklisted)?$");
static QRegExp finish("^[*]{9} Finished testing of (.*) [*]{9}$"); static QRegExp finish("^[*]{9} Finished testing of (.*) [*]{9}$");
static QRegExp result("^(PASS |FAIL! |XFAIL |XPASS |SKIP |BPASS |BFAIL |RESULT " static QRegExp result("^(PASS |FAIL! |XFAIL |XPASS |SKIP |BPASS |BFAIL |RESULT "
"|INFO |QWARN |WARNING|QDEBUG |QSYSTEM): (.*)$"); "|INFO |QWARN |WARNING|QDEBUG |QSYSTEM): (.*)$");
static QRegExp benchDetails("^\\s+([\\d,.]+ .* per iteration \\(total: [\\d,.]+, iterations: \\d+\\))$"); static QRegExp benchDetails("^\\s+([\\d,.]+ .* per iteration \\(total: [\\d,.]+, iterations: \\d+\\))$");