aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/testconfiguration.cpp
diff options
context:
space:
mode:
authorChristian Stenger <[email protected]>2017-09-28 13:51:31 +0200
committerChristian Stenger <[email protected]>2017-10-06 08:48:13 +0000
commitcf5d8509aae3ca8be80ff28b95205f5b89894d53 (patch)
treeb6da1d865d5571095376928b05235b382eeef09d /src/plugins/autotest/testconfiguration.cpp
parent451cc10bba2830351baa445050b882a9367f6bd1 (diff)
AutoTest: Avoid replacing a correct executable
If we already had a correct executable we might end up using the wrong one when trying to complete the configuration again. So, if the former configuration already had an executable set do not try to complete the configuration again. Change-Id: I270be71d87b311c6a5eaad14e0d5a2de60353e5d Reviewed-by: Oliver Wolff <[email protected]>
Diffstat (limited to 'src/plugins/autotest/testconfiguration.cpp')
-rw-r--r--src/plugins/autotest/testconfiguration.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/autotest/testconfiguration.cpp b/src/plugins/autotest/testconfiguration.cpp
index b4af50e8a99..34c8ef18135 100644
--- a/src/plugins/autotest/testconfiguration.cpp
+++ b/src/plugins/autotest/testconfiguration.cpp
@@ -76,6 +76,10 @@ void TestConfiguration::completeTestInformation(ProjectExplorer::RunConfiguratio
TestRunMode runMode)
{
QTC_ASSERT(rc, return);
+ if (hasExecutable()) {
+ qCDebug(LOG) << "Executable has been set already - not completing configuration again.";
+ return;
+ }
Project *project = SessionManager::startupProject();
if (!project)
return;