diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-05-08 23:12:02 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-05-09 00:07:31 +0200 |
commit | e48b5484afde93294c4ed7215e88ed450842b2e5 (patch) | |
tree | c2c87143c78f24df3f86fc9fa7b9af9a9fa76c53 /gnu/packages | |
parent | f226e051f545c074e81a55d8c457cc4ade30ab85 (diff) | |
download | guix-patches-e48b5484afde93294c4ed7215e88ed450842b2e5.tar guix-patches-e48b5484afde93294c4ed7215e88ed450842b2e5.tar.gz |
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".
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/version-control.scm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index d167c9b5aa..b02b6e8493 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 |