Skip to content

Commit 42237ce

Browse files
committed
test: use weston to spawn test process
1 parent dcb22c1 commit 42237ce

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ jobs:
3131
XDG_RUNTIME_DIR: /tmp
3232
run: |
3333
glib-compile-schemas src/setup --targetdir=build/bin
34-
weston --no-config --socket=wl-headless --backend=headless &
35-
WAYLAND_DISPLAY=wl-headless ctest --test-dir build --verbose
34+
weston -Bheadless -- ctest --test-dir build --verbose
3635
3736
build-meson:
3837
runs-on: ubuntu-latest
@@ -54,8 +53,7 @@ jobs:
5453
env:
5554
XDG_RUNTIME_DIR: /tmp
5655
run: |
57-
weston --no-config --socket=wl-headless --backend=headless &
58-
WAYLAND_DISPLAY=wl-headless meson test -C build --print-errorlogs
56+
weston -Bheadless -- meson test -C build --print-errorlogs
5957
6058
coverage:
6159
runs-on: ubuntu-latest
@@ -93,8 +91,7 @@ jobs:
9391
run: |
9492
source "$HOME/.cargo/env"
9593
glib-compile-schemas src/setup --targetdir=build/bin
96-
weston --no-config --socket=wl-headless --backend=headless &
97-
WAYLAND_DISPLAY=wl-headless ctest --test-dir build --verbose
94+
weston -Bheadless -- ctest --test-dir build --verbose
9895
./grcov . -s . -b . --keep-only 'src/*' --llvm -t lcov -o coverage.lcov
9996
10097
- name: Upload coverage reports to Codecov
@@ -121,8 +118,7 @@ jobs:
121118
env:
122119
XDG_RUNTIME_DIR: /tmp
123120
run: |
124-
weston --no-config --socket=wl-headless --backend=headless &
125-
WAYLAND_DISPLAY=wl-headless meson test -C build --print-errorlogs
121+
weston -Bheadless -- meson test -C build --print-errorlogs
126122
ninja -C build coverage-xml
127123
128124
- name: Upload coverage reports to Codecov

0 commit comments

Comments
 (0)