upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts/run_wine_session.sh
blob: 72ace4407bc59b085c3de2b5f7607d94b3bcc23b (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash
# Run CI tests on the display that initialized their dedicated Wine prefix.
set -e
: "${WINEPREFIX:?Set WINEPREFIX to a dedicated test prefix}"

# Stop this prefix's Wine processes before Xvfb tears down the display.
trap 'wineserver -k || true' EXIT
timeout 5m wineboot --init </dev/null
"$@" </dev/null