diff options
author | Robert Griebl <robert.griebl@qt.io> | 2024-02-15 16:50:40 +0100 |
---|---|---|
committer | Robert Griebl <robert.griebl@qt.io> | 2024-02-18 21:24:46 +0100 |
commit | 445ce0fd349375a88777cfd62f356360c898190c (patch) | |
tree | c0eb85a1434cde504575b975f03f75653b3cf675 | |
parent | d9f33aa1f9194839c837916c12ce8eeb11dd2197 (diff) |
auto-tests: Fix controller test
This (a) adapts to the latests instance-suffix changes and (b) tries to
run an dev-build controller binary before using the installed one.
Change-Id: Ib77708b948184c154519aa7c73df268b17a65c59
Pick-to: 6.7
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
-rw-r--r-- | tests/auto/controller-tool/tst_controller-tool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/controller-tool/tst_controller-tool.cpp b/tests/auto/controller-tool/tst_controller-tool.cpp index 4dd553e7..45cece4f 100644 --- a/tests/auto/controller-tool/tst_controller-tool.cpp +++ b/tests/auto/controller-tool/tst_controller-tool.cpp @@ -177,8 +177,8 @@ void tst_ControllerTool::initTestCase() m_main = new Main(m_argc, m_argv); // QCoreApplication saves a reference to argc! QStringList possibleLocations; - possibleLocations.append(QLibraryInfo::path(QLibraryInfo::BinariesPath)); possibleLocations.append(QCoreApplication::applicationDirPath() + u"/../../../bin"_s); + possibleLocations.append(QLibraryInfo::path(QLibraryInfo::BinariesPath)); QString controllerPath; const QString controllerName = u"/appman-controller"_s; @@ -246,7 +246,7 @@ void tst_ControllerTool::instances() { ControllerTool ctrl({ u"list-instances"_s }); QVERIFY2(ctrl.call(), ctrl.failure); - QCOMPARE(ctrl.stdOutList, QStringList({ u"\"controller-test-id\""_s })); + QCOMPARE(ctrl.stdOutList, QStringList({ u"controller-test-id-0"_s })); } void tst_ControllerTool::applications() |