From 013ab294154b19e0f8fe8934238cdb7d415cd470 Mon Sep 17 00:00:00 2001
From: Christian Stenger <christian.stenger@qt.io>
Date: Thu, 29 Sep 2016 13:11:52 +0200
Subject: [PATCH] AutoTest: Fix retrieving metrics information

Change-Id: Ic0a1e1fbf8db613d0d6b20532a3ef404f625e7b1
Reviewed-by: David Schulz <david.schulz@qt.io>
---
 src/plugins/autotest/qtest/qttestoutputreader.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/autotest/qtest/qttestoutputreader.cpp b/src/plugins/autotest/qtest/qttestoutputreader.cpp
index c66a32305b3..fde2fca5bd8 100644
--- a/src/plugins/autotest/qtest/qttestoutputreader.cpp
+++ b/src/plugins/autotest/qtest/qttestoutputreader.cpp
@@ -195,7 +195,7 @@ void QtTestOutputReader::processOutput()
                     m_lineNumber = attributes.value(QStringLiteral("line")).toInt();
                 } else if (currentTag == QStringLiteral("BenchmarkResult")) {
                     const QXmlStreamAttributes &attributes = m_xmlReader.attributes();
-                    const QString metric = attributes.value(QStringLiteral("metrics")).toString();
+                    const QString metric = attributes.value(QStringLiteral("metric")).toString();
                     const double value = attributes.value(QStringLiteral("value")).toDouble();
                     const int iterations = attributes.value(QStringLiteral("iterations")).toInt();
                     m_description = constructBenchmarkInformation(metric, value, iterations);
-- 
GitLab