gnu: tlpui: Honor TESTS?.

* gnu/packages/linux.scm (tlpui)[arguments]<#:phases>: Honor TESTS? in CHECK
phase.
This commit is contained in:
Nicolas Goaziou 2022-07-04 15:08:36 +02:00
parent 56892af033
commit 16c2372fe8
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -7178,8 +7178,9 @@ (define-public tlpui
;; configuration from /etc/tlp.conf or /etc/default/tlp". ;; configuration from /etc/tlp.conf or /etc/default/tlp".
(delete 'sanity-check) (delete 'sanity-check)
(replace 'check (replace 'check
(lambda _ (lambda* (#:key tests? #:allow-other-keys)
(invoke "python" "-m" "discover"))) (when tests?
(invoke "python" "-m" "discover"))))
(add-after 'install 'wrap-gi-python (add-after 'install 'wrap-gi-python
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")) (let ((out (assoc-ref outputs "out"))