mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 04:29:25 -05:00
gnu: restic: Have the custom check phase honor TESTS?.
* gnu/packages/backup.scm (restic)[phases]{check}: Honor TESTS?.
This commit is contained in:
parent
1273548f4f
commit
362a1cc3fb
1 changed files with 6 additions and 5 deletions
|
@ -948,11 +948,12 @@ (define-public restic
|
|||
(invoke "go" "run" "build.go"))))
|
||||
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(with-directory-excursion "src/github.com/restic/restic"
|
||||
;; Disable FUSE tests.
|
||||
(setenv "RESTIC_TEST_FUSE" "0")
|
||||
(invoke "go" "run" "build.go" "--test"))))
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(with-directory-excursion "src/github.com/restic/restic"
|
||||
;; Disable FUSE tests.
|
||||
(setenv "RESTIC_TEST_FUSE" "0")
|
||||
(invoke "go" "run" "build.go" "--test")))))
|
||||
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
|
|
Loading…
Reference in a new issue