AutoTest: Early return if fail to get local executable

If we have not found a local executable any further processing
is not necessary as the outcome will be the same: we will not
be able to start the test runnable.

Change-Id: Iaa4bbd533ced6184148f941c1cba394f9f47554d
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
Christian Stenger
2017-09-22 12:19:13 +02:00
parent 090dea66ee
commit 9dc8b54cdb

View File

@@ -115,6 +115,8 @@ void TestConfiguration::completeTestInformation(TestRunMode runMode)
} }
const QString localExecutable = ensureExeEnding(targetInfo.targetFilePath.toString()); const QString localExecutable = ensureExeEnding(targetInfo.targetFilePath.toString());
if (localExecutable.isEmpty())
return;
QString buildBase; QString buildBase;
if (auto buildConfig = target->activeBuildConfiguration()) { if (auto buildConfig = target->activeBuildConfiguration()) {