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".master
parent
f226e051f5
commit
e48b5484af
|
@ -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
|
||||
|
|
Reference in New Issue