From 51aa7b31253f2cf91d40061e71fd9d88966d726b Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 24 Aug 2025 05:08:20 +0300 Subject: [PATCH] gnu: go-1.22: Extend the test timeout on some architectures. * gnu/packages/golang.scm (go-1.22)[arguments]: On some architectures add a phase to extend the test timeout. Change-Id: I7db0d37a616f6515790189451d8d4ce41188ec1c Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5d869386ce2df8a23f0a5bec3bb3542fb1c77141..e7eb1335c888b0cb65370605c7291aeb77ca1b5d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -924,6 +924,13 @@ in the style of communicating sequential processes (@dfn{CSP}).") ("api" "share/go/api" ,tests) ("test" "share/go/test" ,tests)))))) + ;; Some architectures need more time for the test suite. + #$@(if (or (target-riscv64?) + (target-arm?)) + #~((add-after 'unpack 'extend-test-timeout + (lambda _ + (setenv "GO_TEST_TIMEOUT_SCALE" "10")))) + #~()) (replace 'disable-more-tests (lambda _ #$@(cond