mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-15 07:27:48 -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")))
|
(("xdg-open") (string-append xdg-utils "/bin/xdg-open")))
|
||||||
#t)))
|
#t)))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
; The `unittest' target overrides the PYTHONPATH variable.
|
; The `unittest' target overrides the PYTHONPATH variable.
|
||||||
(substitute* "makefile"
|
(substitute* "makefile"
|
||||||
(("PYTHONPATH=src/") "PYTHONPATH=${PYTHONPATH}:src/"))
|
(("PYTHONPATH=src/") "PYTHONPATH=${PYTHONPATH}:src/"))
|
||||||
(invoke "make" "unittest")))
|
(when tests?
|
||||||
|
(invoke "make" "unittest"))))
|
||||||
;; 'msgmerge' introduces non-determinism by resetting the
|
;; 'msgmerge' introduces non-determinism by resetting the
|
||||||
;; POT-Creation-Date in .po files.
|
;; POT-Creation-Date in .po files.
|
||||||
(add-before 'install 'do-not-run-msgmerge
|
(add-before 'install 'do-not-run-msgmerge
|
||||||
|
|
Loading…
Reference in a new issue