tag 987248 + patch
thanks

Hi,

Please find attached a small patch which increase the timeout for
armhf and arm64 (both failing on the Reproducible Builds project as
well).

Best,
Dylan
From: Dylan Aïssi <dylan.ai...@collabora.com>
Date: Thu, 10 Jun 2021 17:54:13 +0200
Subject: [PATCH] Increase dh_auto_test timeout for slow arch (Closes: #987248)

---
 debian/rules             | 9 +++++++++
 debian/tests/pkg-js/test | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index a28cb81..b28cd9a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,15 @@
 #!/usr/bin/make -f
 export DH_VERBOSE=1
 
+# Increase dh_auto_test timeout for slow arch
+# https://bugs.debian.org/987248
+include /usr/share/dpkg/architecture.mk
+ifneq (,$(findstring $(DEB_BUILD_ARCH), armhf arm64))
+  export MOCHA_TIMEOUT=--timeout 4000
+endif
+
+
+
 js-compressor := $(or $(notdir $(shell which uglifyjs)),yui-compressor)
 
 %:
diff --git a/debian/tests/pkg-js/test b/debian/tests/pkg-js/test
index a58a668..f749291 100644
--- a/debian/tests/pkg-js/test
+++ b/debian/tests/pkg-js/test
@@ -1,2 +1,2 @@
 ln -s . build
-mocha --globals document
+mocha --globals document ${MOCHA_TIMEOUT}
-- 
2.30.2

Reply via email to