AutoTest: Disable timeout by default

Usually test frameworks or tools have their own timeout
handling or not at all.
Let the user decide whether to use a timeout or not.
This is a behavior change as now the test run does not
get automatically canceled anymore except when the user
explicitly enables this feature.

Fixes: QTCREATORBUG-30668
Change-Id: Ic5d98db0c52bfea092e427d317b12c41d6484ad0
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2024-04-18 15:29:27 +02:00
parent 820e65894d
commit a7f92dd8be
7 changed files with 25 additions and 15 deletions

View File

@@ -412,8 +412,10 @@ void TestRunner::runTestsHelper()
}
process.setEnvironment(environment);
m_cancelTimer.setInterval(testSettings().timeout());
m_cancelTimer.start();
if (testSettings().useTimeout()) {
m_cancelTimer.setInterval(testSettings().timeout());
m_cancelTimer.start();
}
qCInfo(runnerLog) << "Command:" << process.commandLine().executable();
qCInfo(runnerLog) << "Arguments:" << process.commandLine().arguments();