diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6ffc2eb..2438bb1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -85,10 +85,7 @@ jobs: cmake --install . - name: Run tests - env: - Qt_QPA_PLATFORM: offscreen run: | cd build - echo $Qt_QPA_PLATFORM ctest -V diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index d994331..5538076 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -3,6 +3,7 @@ find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED CONFIG COMPONENTS ecm_add_test(jetbrainsrunnerintegrationtest.cpp LINK_LIBRARIES Qt::Test KF${QT_MAJOR_VERSION}::Runner KF${QT_MAJOR_VERSION}::Service) krunner_configure_test(jetbrainsrunnerintegrationtest krunner_jetbrainsrunner) +set_tests_properties(jetbrainsrunnerintegrationtest PROPERTIES ENVIRONMENT "QT_QPA_PLATFORM=offscreen") if (COMMAND krunner_configure_test) krunner_configure_test(jetbrainsrunnerintegrationtest krunner_jetbrainsrunner)