[autotests] Improve stability of TestWaylandFullscreenShell
Apparently we need to add a small delay after starting weston otherwise it fails to connect on the CI system. Additionally we switch to using headless-backend.so which should also make the setup more robust.
This commit is contained in:
parent
8a6cbfd874
commit
681211ca33
1 changed files with 2 additions and 1 deletions
|
@ -60,10 +60,11 @@ void TestWaylandFullscreenShell::init()
|
|||
m_westonProcess->setProgram(QStringLiteral("weston"));
|
||||
|
||||
m_westonProcess->setArguments(QStringList({QStringLiteral("--socket=%1").arg(s_socketName),
|
||||
QStringLiteral("--use-pixman"),
|
||||
QStringLiteral("--backend=headless-backend.so"),
|
||||
QStringLiteral("--shell=fullscreen-shell.so")}));
|
||||
m_westonProcess->start();
|
||||
QVERIFY(m_westonProcess->waitForStarted());
|
||||
QTest::qWait(500);
|
||||
|
||||
// wait for the socket to appear
|
||||
QDir runtimeDir(qgetenv("XDG_RUNTIME_DIR"));
|
||||
|
|
Loading…
Reference in a new issue