AutoTest: Allow guessing configuration for debugging

Guess the config if no matching run target was found.

Change-Id: If70881cd64ab6523bbca13b1c8c18d63e9fcdeb7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2016-07-07 08:14:28 +02:00
parent 5fcf0a9ec6
commit 3ecbce9b84

View File

@@ -172,6 +172,7 @@ void TestConfiguration::completeTestInformation(int runMode)
env = stdRunnable.environment; env = stdRunnable.environment;
hasDesktopTarget = true; hasDesktopTarget = true;
guessedRunConfiguration = true; guessedRunConfiguration = true;
runConfigTarget = rc->target();
} }
} }
} }
@@ -186,7 +187,7 @@ void TestConfiguration::completeTestInformation(int runMode)
setEnvironment(env); setEnvironment(env);
setProject(project); setProject(project);
setGuessedConfiguration(guessedRunConfiguration); setGuessedConfiguration(guessedRunConfiguration);
if (!guessedRunConfiguration && runMode == TestRunner::Debug) if (runMode == TestRunner::Debug)
m_runConfig = new TestRunConfiguration(runConfigTarget, this); m_runConfig = new TestRunConfiguration(runConfigTarget, this);
} }
} }