gnu: libgit2: Set ‘GITTEST_FLAKY_STAT’ when running tests on GNU/Hurd.

* gnu/packages/version-control.scm (libgit2)[arguments]: Install
‘pre-check’ phase when ‘target-hurd?’ returns true.

Change-Id: I664d4aa2a0ad76a10a47ae7bc3c5912756972b46
This commit is contained in:
Ludovic Courtès 2024-02-26 23:20:43 +01:00
parent b6604de226
commit 2a7f7af87c
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 3 additions and 1 deletions

View File

@ -911,8 +911,10 @@ other git-like projects such as @code{libgit2}.")
'()))
#:phases
(modify-phases %standard-phases
,@(if (target-arm32?)
,@(if (or (target-arm32?) (target-hurd?))
;; Some tests are flaky on armhf.
;; On GNU/Hurd, the 'diff/workdir' test in libgit2 1.7.1 fails
;; while comparing st.st_size to zero.
'((add-before 'check 'pre-check
(lambda _
(setenv "GITTEST_FLAKY_STAT" "true"))))