mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 21:48:37 +00:00
10 lines
325 B
Bash
Executable File
10 lines
325 B
Bash
Executable File
#!/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
|