Commit e0cb6974 authored by Christian Stenger's avatar Christian Stenger Committed by David Schulz
Browse files

AutoTest: Fix handling of Qbs when searching for BuildTargetInfo

Amends 124efb32

 - this special handling got lost between patch sets.

Change-Id: Ic94145d3310668f1c63abe5443e0d833850227a7
Reviewed-by: Christian Stenger's avatarChristian Stenger <>
Reviewed-by: David Schulz's avatarDavid Schulz <>
parent 4fbca421
......@@ -84,9 +84,13 @@ void TestConfiguration::completeTestInformation(int runMode)
return part->buildSystemTarget;
const Utils::FileName fn = Utils::FileName::fromString(m_projectFile);
const BuildTargetInfo targetInfo
= Utils::findOrDefault(target->applicationTargets().list, [&buildSystemTargets] (const BuildTargetInfo &bti) {
return buildSystemTargets.contains(bti.targetName);
= Utils::findOrDefault(target->applicationTargets().list,
[&buildSystemTargets, &fn] (const BuildTargetInfo &bti) {
return Utils::anyOf(buildSystemTargets, [&fn, &bti](const QString &b) {
return b == bti.targetName || (b.contains(bti.targetName) && bti.projectFilePath == fn);
const Utils::FileName executable = targetInfo.targetFilePath; // empty if BTI is default created
for (RunConfiguration *runConfig : target->runConfigurations()) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment