mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-24 08:37:42 +00:00
chore(linux): Improve package build
During package builds on Debian servers the build often failed with an error related to X11 when running the tests. This change skips the tests in `linux/ibus-keyman/src/test` when building packages, similar to the way we already do it for the tests in `linux/ibus-keyman/tests`.
This commit is contained in:
parent
24cce11fe1
commit
8a14372e0a
1 changed files with 9 additions and 0 deletions
|
|
@ -3,6 +3,15 @@
|
|||
SRCDIR=${top_srcdir:-$(realpath $(dirname $0)/../..)}
|
||||
PID_FILE=/tmp/keymanutil-tests-pids
|
||||
|
||||
if [ -v KEYMAN_PKG_BUILD ]; then
|
||||
# During package builds we skip these tests - they often fail, e.g.
|
||||
# during Debian reproducibility testing with an error like
|
||||
# "cannot open display: :32"
|
||||
echo "1..1"
|
||||
echo "ok 1 # SKIP on package build"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if ! which Xvfb > /dev/null || ! which Xephyr > /dev/null || ! which metacity > /dev/null; then
|
||||
echo "Please install Xvfb, Xephyr and metacity before running these tests!"
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue