AutoTest: Do not inherit from another framework

Commit 91509727e0 had some unexpected side effect.
Amend (or replace) this one by an explicit lookup which
is still a hack, but at least safe to do.

Change-Id: I8fd2e9bdcea18d062f6fc6dd74709c12c16f2cc5
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2020-04-17 13:44:30 +02:00
parent 74a07f906f
commit ce3306ccb3
2 changed files with 15 additions and 3 deletions

View File

@@ -27,6 +27,9 @@
#include "quicktestparser.h"
#include "quicktesttreeitem.h"
#include "../testframeworkmanager.h"
#include "../qtest/qttestconstants.h"
namespace Autotest {
namespace Internal {
@@ -51,5 +54,13 @@ unsigned QuickTestFramework::priority() const
return 5;
}
IFrameworkSettings *QuickTestFramework::frameworkSettings()
{
static const Core::Id id
= Core::Id(Constants::FRAMEWORK_PREFIX).withSuffix(QtTest::Constants::FRAMEWORK_NAME);
ITestFramework *qtTestFramework = TestFrameworkManager::frameworkForId(id);
return qtTestFramework->frameworkSettings();
}
} // namespace Internal
} // namespace Autotest