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".
This commit is contained in:
Ludovic Courtès 2022-05-08 23:12:02 +02:00
parent f226e051f5
commit e48b5484af
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -802,7 +802,16 @@ (define-public libgit2
(base32 (base32
"0vgpb2175a5dhqiy1iwywwppahgqhi340i8bsvafjpvkw284vazd")) "0vgpb2175a5dhqiy1iwywwppahgqhi340i8bsvafjpvkw284vazd"))
(modules '((guix build utils))) (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) (build-system cmake-build-system)
(outputs '("out" "debug")) (outputs '("out" "debug"))
(arguments (arguments