mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: src: Respect #:tests? argument.
* gnu/packages/version-control.scm (src)[arguments]: Skip the 'check phase when #:tests? is false. Change-Id: Ic39cdb1e9a158d16d022f6e41a954b567731b124
This commit is contained in:
parent
b1df929e1b
commit
a47d7af227
1 changed files with 6 additions and 5 deletions
|
@ -3449,11 +3449,12 @@ (define-public src
|
|||
(wrap-program prog
|
||||
`("PATH" ":" prefix (,(dirname rcs)))))))
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(setenv "HOME" (getenv "TMPDIR"))
|
||||
(invoke "git" "config" "--global" "user.name" "guix")
|
||||
(invoke "git" "config" "--global" "user.email" "guix")
|
||||
(invoke "./srctest"))))))
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(setenv "HOME" (getenv "TMPDIR"))
|
||||
(invoke "git" "config" "--global" "user.name" "guix")
|
||||
(invoke "git" "config" "--global" "user.email" "guix")
|
||||
(invoke "./srctest")))))))
|
||||
(native-inputs
|
||||
(list asciidoc
|
||||
;; For testing.
|
||||
|
|
Loading…
Reference in a new issue