forked from qt-creator/qt-creator
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:
@@ -172,6 +172,7 @@ void TestConfiguration::completeTestInformation(int runMode)
|
||||
env = stdRunnable.environment;
|
||||
hasDesktopTarget = true;
|
||||
guessedRunConfiguration = true;
|
||||
runConfigTarget = rc->target();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -186,7 +187,7 @@ void TestConfiguration::completeTestInformation(int runMode)
|
||||
setEnvironment(env);
|
||||
setProject(project);
|
||||
setGuessedConfiguration(guessedRunConfiguration);
|
||||
if (!guessedRunConfiguration && runMode == TestRunner::Debug)
|
||||
if (runMode == TestRunner::Debug)
|
||||
m_runConfig = new TestRunConfiguration(runConfigTarget, this);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user