mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-27 14:52:05 -05:00
gnu: gpodder: Make the check phase honor the tests? argument.
* gnu/packages/gpodder.scm (gpodder)[arguments]: Adjust custom 'check phase to skip tests when #:tests? is #f.
This commit is contained in:
parent
c4413569f7
commit
d68d84ee19
1 changed files with 3 additions and 2 deletions
|
@ -93,11 +93,12 @@ (define-public gpodder
|
|||
(("xdg-open") (string-append xdg-utils "/bin/xdg-open")))
|
||||
#t)))
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
; The `unittest' target overrides the PYTHONPATH variable.
|
||||
(substitute* "makefile"
|
||||
(("PYTHONPATH=src/") "PYTHONPATH=${PYTHONPATH}:src/"))
|
||||
(invoke "make" "unittest")))
|
||||
(when tests?
|
||||
(invoke "make" "unittest"))))
|
||||
;; 'msgmerge' introduces non-determinism by resetting the
|
||||
;; POT-Creation-Date in .po files.
|
||||
(add-before 'install 'do-not-run-msgmerge
|
||||
|
|
Loading…
Reference in a new issue