From 32c864951c0e1849ef2392171f3ec6c3df0265c8 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 20 Jun 2023 08:00:49 +0200 Subject: [PATCH] AutoTest: Fix some ui text punctuation Change-Id: I9d028d6649d5093f599629e99cef0fdcbeb66db9 Reviewed-by: Reviewed-by: Leena Miettinen --- .../autotest/boost/boosttestoutputreader.cpp | 14 +++++++------- src/plugins/autotest/ctest/ctestoutputreader.cpp | 2 +- src/plugins/autotest/gtest/gtestoutputreader.cpp | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/plugins/autotest/boost/boosttestoutputreader.cpp b/src/plugins/autotest/boost/boosttestoutputreader.cpp index 96b0dffd61b..7042dabb597 100644 --- a/src/plugins/autotest/boost/boosttestoutputreader.cpp +++ b/src/plugins/autotest/boost/boosttestoutputreader.cpp @@ -147,7 +147,7 @@ void BoostTestOutputReader::handleMessageMatch(const QRegularExpressionMatch &ma if (m_currentTest != match.captured(11) && m_currentTest.isEmpty()) m_currentTest = match.captured(11); m_result = ResultType::TestEnd; - m_description = Tr::tr("Test execution took %1").arg(match.captured(12)); + m_description = Tr::tr("Test execution took %1.").arg(match.captured(12)); } else if (type == "suite") { if (!m_currentSuite.isEmpty()) { int index = m_currentSuite.lastIndexOf('/'); @@ -163,7 +163,7 @@ void BoostTestOutputReader::handleMessageMatch(const QRegularExpressionMatch &ma } m_currentTest.clear(); m_result = ResultType::TestEnd; - m_description = Tr::tr("Test suite execution took %1").arg(match.captured(12)); + m_description = Tr::tr("Test suite execution took %1.").arg(match.captured(12)); } } else if (content.startsWith("Test case ")) { m_currentTest = match.captured(4); @@ -247,7 +247,7 @@ void BoostTestOutputReader::processOutputLine(const QByteArray &outputLine) } else { QTC_CHECK(m_currentModule == match.captured(3)); BoostTestResult result(id(), m_currentModule, m_projectFile); - result.setDescription(Tr::tr("Test module execution took %1").arg(match.captured(4))); + result.setDescription(Tr::tr("Test module execution took %1.").arg(match.captured(4))); result.setResult(ResultType::TestEnd); reportResult(result); @@ -394,17 +394,17 @@ void BoostTestOutputReader::onDone(int exitCode) if (m_logLevel == LogLevel::Nothing && m_reportLevel == ReportLevel::No) { switch (exitCode) { case 0: - reportNoOutputFinish(Tr::tr("Running tests exited with %1").arg("boost::exit_success."), + reportNoOutputFinish(Tr::tr("Running tests exited with %1.").arg("boost::exit_success"), ResultType::Pass); break; case 200: reportNoOutputFinish( - Tr::tr("Running tests exited with %1").arg("boost::exit_test_exception."), + Tr::tr("Running tests exited with %1.").arg("boost::exit_test_exception"), ResultType::MessageFatal); break; case 201: - reportNoOutputFinish(Tr::tr("Running tests exited with %1") - .arg("boost::exit_test_failure."), ResultType::Fail); + reportNoOutputFinish(Tr::tr("Running tests exited with %1.") + .arg("boost::exit_test_failure"), ResultType::Fail); break; } } else if (exitCode != 0 && exitCode != 201 && !m_description.isEmpty()) { diff --git a/src/plugins/autotest/ctest/ctestoutputreader.cpp b/src/plugins/autotest/ctest/ctestoutputreader.cpp index 10f48d9d46c..f53dd873b00 100644 --- a/src/plugins/autotest/ctest/ctestoutputreader.cpp +++ b/src/plugins/autotest/ctest/ctestoutputreader.cpp @@ -90,7 +90,7 @@ void CTestOutputReader::processOutputLine(const QByteArray &outputLine) m_project = match.captured(1); TestResult testResult = createDefaultResult(); testResult.setResult(ResultType::TestStart); - testResult.setDescription(Tr::tr("Running tests for %1").arg(m_project)); + testResult.setDescription(Tr::tr("Running tests for \"%1\".").arg(m_project)); reportResult(testResult); } else if (ExactMatch match = testCase1.match(line)) { int current = match.captured("current").toInt(); diff --git a/src/plugins/autotest/gtest/gtestoutputreader.cpp b/src/plugins/autotest/gtest/gtestoutputreader.cpp index 1e980c06d00..95cbbc8e902 100644 --- a/src/plugins/autotest/gtest/gtestoutputreader.cpp +++ b/src/plugins/autotest/gtest/gtestoutputreader.cpp @@ -81,7 +81,7 @@ void GTestOutputReader::processOutputLine(const QByteArray &outputLine) if (ExactMatch match = testEnds.match(line)) { TestResult testResult = createDefaultResult(); testResult.setResult(ResultType::TestEnd); - testResult.setDescription(Tr::tr("Test execution took %1").arg(match.captured(2))); + testResult.setDescription(Tr::tr("Test execution took %1.").arg(match.captured(2))); reportResult(testResult); m_currentTestSuite.clear(); m_currentTestCase.clear();