gnu: tuir: Respect #:tests?.

* gnu/packages/syndication.scm (tuir)[arguments]: Adjust custom 'check
phase to skip tests when requested.
This commit is contained in:
Efraim Flashner 2021-08-04 15:15:57 +03:00
parent 75ec0fa243
commit a715e93a09
Signed by untrusted user: efraim
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 3 additions and 2 deletions

View File

@ -475,9 +475,10 @@ a simple interface that makes it easy to organize and browse feeds.")
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "pytest"))))))
(when tests?
(invoke "pytest")))))))
(inputs
`(("python-beautifulsoup4" ,python-beautifulsoup4)
("python-decorator" ,python-decorator)