From cf5d8509aae3ca8be80ff28b95205f5b89894d53 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 28 Sep 2017 13:51:31 +0200 Subject: [PATCH] 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 --- src/plugins/autotest/testconfiguration.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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;