@@ -8,6 +8,11 @@ include /usr/share/dpkg/default.mk
8export DPKG_GENSYMBOLS_CHECK_LEVEL=4
8export DPKG_GENSYMBOLS_CHECK_LEVEL=4
9export NO_PNG_PKG_MANGLE=1
9export NO_PNG_PKG_MANGLE=1
11+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
13+# Skip tests on the archs they are known to be flaky with current configuration
14+testskip_architectures := arm64
12 dh $@ --parallel --fail-missing --with python3
17 dh $@ --parallel --fail-missing --with python3
@@ -21,10 +26,12 @@ override_dh_auto_build:
21 dh_auto_build -- -O all doc
26 dh_auto_build -- -O all doc
23override_dh_auto_test:
28override_dh_auto_test:
29+ifneq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(testskip_architectures)))
24 # Run the entire test battery
30 # Run the entire test battery
25 # Parallel tests have a risk of starting xvfb on the same DISPLAY multiple times,
31 # Parallel tests have a risk of starting xvfb on the same DISPLAY multiple times,
26 # causing the whole battery to fail.
32 # causing the whole battery to fail.
27 dh_auto_test --no-parallel -- -O -k xvfballtests
33 dh_auto_test --no-parallel -- -O -k xvfballtests
29override_dh_install:
36override_dh_install:
30 # install autopilot tests
37 # install autopilot tests