AutoTest: Provide more details on failure or guess

If a test case cannot be started or does crash while executing
these information might help to sort out configuration problems.

Change-Id: I406d5e69475d05931d4c4c4738f8528c6d74c585
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2017-04-03 09:17:58 +02:00
parent 750f25d9e6
commit f173dc82df
3 changed files with 42 additions and 14 deletions

View File

@@ -130,6 +130,7 @@ void TestConfiguration::completeTestInformation(int runMode)
m_executableFile = exeString;
m_project = project;
m_guessedConfiguration = true;
m_guessedFrom = rc->displayName();
if (runMode == TestRunner::Debug)
m_runConfig = new TestRunConfiguration(rc->target(), this);
}
@@ -203,11 +204,6 @@ void TestConfiguration::setProject(Project *project)
m_project = project;
}
void TestConfiguration::setGuessedConfiguration(bool guessed)
{
m_guessedConfiguration = guessed;
}
QString TestConfiguration::executableFilePath() const
{
if (m_executableFile.isEmpty())