gnu: libgit2: Skip some tests on armhf-linux.

* gnu/packages/version-control.scm (libgit2)[arguments]: When building
for armhf-linux add a phase to skip some tests.
This commit is contained in:
Efraim Flashner 2023-06-13 09:16:46 +03:00
parent 0b2d33af03
commit 63f8af77ec
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -846,6 +846,12 @@ (define-public libgit2
'()))
#:phases
(modify-phases %standard-phases
,@(if (target-arm32?)
;; Some tests are flaky on armhf.
'((add-before 'check 'pre-check
(lambda _
(setenv "GITTEST_FLAKY_STAT" "true"))))
'())
;; Run checks more verbosely, unless we are cross-compiling.
(replace 'check
(lambda* (#:key (tests? #t) #:allow-other-keys)