[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/04: gnu: libgit2: Set ‘GITTEST_FLAKY_STAT’ when running tests on GNU/
From: |
guix-commits |
Subject: |
01/04: gnu: libgit2: Set ‘GITTEST_FLAKY_STAT’ when running tests on GNU/Hurd. |
Date: |
Mon, 26 Feb 2024 17:45:29 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 2a7f7af87cfe71b0b6591b599b75cdaa51e301d7
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Feb 26 23:20:43 2024 +0100
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
---
gnu/packages/version-control.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index af237ab4ee..ba2f1d6fad 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -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"))))