Skip to content

Commit

Permalink
Use Xvfb for Linux desktop tests (flutter#2750)
Browse files Browse the repository at this point in the history
Flutter plugin tests don't necessarily run in headless mode; this adds a virtual display when running Linux tests so that they will run in normal mode.

Fixes flutter/flutter#55327
  • Loading branch information
stuartmorgan authored and Egor committed Nov 20, 2020
1 parent c048e93 commit 019bf58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .ci/Dockerfile-LinuxDesktop
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ RUN sudo apt-get update && sudo apt-get install -y google-cloud-sdk && \
gcloud config set core/disable_usage_reporting true && \
gcloud config set component_manager/disable_update_check true

# Install xvfb to allow running headless
RUN sudo apt-get install -y xvfb libegl1-mesa
# Install Linux desktop requirements.
RUN sudo apt-get install -y clang make cmake ninja-build rsync pkg-config
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ task:
# TODO(stuartmorgan): Include stable once Linux is supported on stable.
- flutter channel master
- ./script/incremental_build.sh build-examples --linux
- ./script/incremental_build.sh drive-examples --linux
- xvfb-run ./script/incremental_build.sh drive-examples --linux

task:
# don't run on release tags since it creates O(n^2) tasks where n is the number of plugins
Expand Down

0 comments on commit 019bf58

Please sign in to comment.