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:
Efraim Flashner 2021-07-20 21:38:34 +03:00
parent c4413569f7
commit d68d84ee19
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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