From 5bdda2e6d9e135d5b00905648d758baba9b1b313 Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Thu, 20 Jun 2024 17:05:04 +0530 Subject: [PATCH] e2e: specify linux platform for QT (#15268) In this commit we specify `QT_QPA_PLATFORM` to `linuxfb` reference -> https://doc.qt.io/qt-5/embedded-linux.html#linuxfb This ensures we do not rely on `xcb` for e2e tests on linux hosts. Helps us fix the following error : ``` "Could not load the Qt platform plugin "xcb" in "" even though it was found." ``` --- ci/Jenkinsfile.tests-e2e | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/Jenkinsfile.tests-e2e b/ci/Jenkinsfile.tests-e2e index 66532047b..eb1f138d9 100644 --- a/ci/Jenkinsfile.tests-e2e +++ b/ci/Jenkinsfile.tests-e2e @@ -76,6 +76,9 @@ pipeline { TESTRAIL_URL = 'https://ethstatus.testrail.net' TESTRAIL_PROJECT_ID = 17 + /* Override QT xcb plugin with linux to avoid errors like: + * "Could not load the Qt platform plugin "xcb" in "" even though it was found." */ + QT_QPA_PLATFORM = "linuxfb" /* Runtime flag to make testing of the app easier. Switched off: unpredictable app behavior under new tests */ /* STATUS_RUNTIME_TEST_MODE = 'True' */