me
/
guix
Archived
1
0
Fork 0

gnu: restic: Have the custom check phase honor TESTS?.

* gnu/packages/backup.scm (restic)[phases]{check}: Honor TESTS?.
Maxim Cournoyer 2021-08-05 22:54:19 -04:00
parent 1273548f4f
commit 362a1cc3fb
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 6 additions and 5 deletions

View File

@ -948,11 +948,12 @@ is like a time machine for your data. ")
(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)