gnu: restic: Have the custom check phase honor TESTS?.
* gnu/packages/backup.scm (restic)[phases]{check}: Honor TESTS?.
parent
1273548f4f
commit
362a1cc3fb
|
@ -948,11 +948,12 @@ is like a time machine for your data. ")
|
||||||
(invoke "go" "run" "build.go"))))
|
(invoke "go" "run" "build.go"))))
|
||||||
|
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(with-directory-excursion "src/github.com/restic/restic"
|
(when tests?
|
||||||
;; Disable FUSE tests.
|
(with-directory-excursion "src/github.com/restic/restic"
|
||||||
(setenv "RESTIC_TEST_FUSE" "0")
|
;; Disable FUSE tests.
|
||||||
(invoke "go" "run" "build.go" "--test"))))
|
(setenv "RESTIC_TEST_FUSE" "0")
|
||||||
|
(invoke "go" "run" "build.go" "--test")))))
|
||||||
|
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
|
Reference in New Issue