forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user