@@ -8,6 +8,11 @@ include /usr/share/dpkg/default.mk
88export DPKG_GENSYMBOLS_CHECK_LEVEL=4
99export NO_PNG_PKG_MANGLE=1
1010
11+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
12+
13+# Skip tests on the archs they are known to be flaky with current configuration
14+testskip_architectures := arm64
15+
1116%:
1217 dh $@ --parallel --fail-missing --with python3
1318
@@ -21,10 +26,12 @@ override_dh_auto_build:
2126 dh_auto_build -- -O all doc
2227
2328override_dh_auto_test:
29+ifneq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(testskip_architectures)))
2430 # Run the entire test battery
2531 # Parallel tests have a risk of starting xvfb on the same DISPLAY multiple times,
2632 # causing the whole battery to fail.
2733 dh_auto_test --no-parallel -- -O -k xvfballtests
34+endif
2835
2936override_dh_install:
3037 # install autopilot tests