~ruther/guix-local

51aa7b31253f2cf91d40061e71fd9d88966d726b — Efraim Flashner 7 months ago bb6ae1c
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 <sharlatanus@gmail.com>
1 files changed, 7 insertions(+), 0 deletions(-)

M gnu/packages/golang.scm
M gnu/packages/golang.scm => gnu/packages/golang.scm +7 -0
@@ 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