[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch staging updated: gnu: libgit2: Work around time-dependent unit te
From: |
guix-commits |
Subject: |
branch staging updated: gnu: libgit2: Work around time-dependent unit test. |
Date: |
Sun, 08 May 2022 17:14:57 -0400 |
This is an automated email from the git hooks/post-receive script.
civodul pushed a commit to branch staging
in repository guix.
The following commit(s) were added to refs/heads/staging by this push:
new f5fe0082ab gnu: libgit2: Work around time-dependent unit test.
f5fe0082ab is described below
commit f5fe0082abe4547f3fb9f29d8351473cfb3a387b
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun May 8 23:12:02 2022 +0200
gnu: libgit2: Work around time-dependent unit test.
Fixes <https://issues.guix.gnu.org/55326>.
* gnu/packages/version-control.scm (libgit2)[source]: Augment 'snippet'
to modify "tests/refs/revparse.c".
---
gnu/packages/version-control.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 7574afda86..ca339b9285 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -802,7 +802,16 @@ to GitHub contributions calendar.")
(base32
"0vgpb2175a5dhqiy1iwywwppahgqhi340i8bsvafjpvkw284vazd"))
(modules '((guix build utils)))
- (snippet '(delete-file-recursively "deps"))))
+ (snippet
+ '(begin
+ (delete-file-recursively "deps")
+
+ ;; The "refs:revparse::date" test is time-dependent: it
+ ;; assumes "HEAD@{10 years ago}" doesn't match anything,
+ ;; which is no longer true. Adjust that test.
+ (substitute* "tests/refs/revparse.c"
+ (("10 years ago")
+ "100 years ago"))))))
(build-system cmake-build-system)
(outputs '("out" "debug"))
(arguments
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch staging updated: gnu: libgit2: Work around time-dependent unit test.,
guix-commits <=