AutoTest: Make message translatable

Change-Id: I987fc5da3155040a4580546ac2eca1257d229d5b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2018-04-18 08:13:35 +02:00
parent 2dff9a03ac
commit 8c8313094f

View File

@@ -52,10 +52,8 @@ GTestOutputReader::GTestOutputReader(const QFutureInterface<TestResultPtr> &futu
static_cast<void (QProcess::*)(int, QProcess::ExitStatus)>(&QProcess::finished),
this, [this] (int exitCode, QProcess::ExitStatus /*exitStatus*/) {
if (exitCode == 1 && !m_description.isEmpty()) {
// TODO tr()
const QString message{"Running test(s) failed\n" + m_description
+ "\nExecutable: " + m_executable};
createAndReportResult(message, Result::MessageFatal);
createAndReportResult(tr("Running tests failed.\n %1\nExecutable: %2")
.arg(m_description).arg(m_executable), Result::MessageFatal);
}
// on Windows abort() will result in normal termination, but exit code will be set to 3
if (Utils::HostOsInfo::isWindowsHost() && exitCode == 3)