Skip to content

Commit 3a29589

Browse files
committed
Hacky fix to tests failing in pipeline
1 parent 4b99227 commit 3a29589

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,10 @@ jobs:
7272
run: QT_QPA_PLATFORM=offscreen ./build/mutterkey --help
7373

7474
- name: Validate headless tray startup
75-
run: timeout 2s env QT_QPA_PLATFORM=offscreen ./build/mutterkey-tray
75+
run: |
76+
if timeout 2s env QT_QPA_PLATFORM=offscreen ./build/mutterkey-tray; then
77+
exit 0
78+
else
79+
status=$?
80+
test "$status" -eq 124
81+
fi

.github/workflows/release-checks.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,13 @@ jobs:
5858
test -x "$INSTALL_DIR/bin/mutterkey-tray"
5959
6060
- name: Validate headless tray startup
61-
run: timeout 2s env QT_QPA_PLATFORM=offscreen ./build/mutterkey-tray
61+
run: |
62+
if timeout 2s env QT_QPA_PLATFORM=offscreen ./build/mutterkey-tray; then
63+
exit 0
64+
else
65+
status=$?
66+
test "$status" -eq 124
67+
fi
6268
6369
- name: Run Valgrind Memcheck lane
6470
run: bash scripts/run-valgrind.sh build

0 commit comments

Comments
 (0)