Skip to content

Commit

Permalink
flutter: Fix running under xvfb
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsergio committed Dec 8, 2024
1 parent db4ab25 commit e1fbcf2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,11 @@ endif()
if(KDDW_FRONTEND_FLUTTER)
if(UNIX AND NOT APPLE)
set(FLUTTER_DEVICE linux)
set(TEST_RUNNER "xvfb-run flutter")
set(TEST_RUNNER "xvfb-run")
elseif(WIN32)
set(FLUTTER_DEVICE windows)
set(TEST_RUNNER flutter)
elseif(APPLE)
set(FLUTTER_DEVICE macos)
set(TEST_RUNNER flutter)
endif()

add_test(
Expand All @@ -159,7 +157,7 @@ if(KDDW_FRONTEND_FLUTTER)
add_test(
NAME tst_flutter_integrationtests
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests/flutter/
COMMAND ${TEST_RUNNER} test integration_test -d ${FLUTTER_DEVICE}
COMMAND ${TEST_RUNNER} flutter test integration_test -d ${FLUTTER_DEVICE}
)
endif()

Expand Down

0 comments on commit e1fbcf2

Please sign in to comment.