Skip to content

Commit e433034

Browse files
ci: Shutdown wineserver whenever CI script exits
Before: CI times out when a wine task fails. After: Wine tasks exit properly when they fail.
1 parent 9a5a611 commit e433034

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ci/cirrus.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ print_environment
3434
# This speeds up jobs with many invocations of wine (e.g., ./configure with MSVC) tremendously.
3535
case "$WRAPPER_CMD" in
3636
*wine*)
37+
# Make sure to shutdown wineserver whenever we exit.
38+
trap "wineserver -k || true" EXIT INT HUP
3739
# This is apparently only reliable when we run a dummy command such as "hh.exe" afterwards.
3840
wineserver -p && wine hh.exe
3941
;;
@@ -111,9 +113,6 @@ then
111113
make precomp
112114
fi
113115

114-
# Shutdown wineserver again
115-
wineserver -k || true
116-
117116
# Check that no repo files have been modified by the build.
118117
# (This fails for example if the precomp files need to be updated in the repo.)
119118
git diff --exit-code

0 commit comments

Comments
 (0)