gnu: python-vedo: Honor #:tests? flag.

* gnu/packages/python-science.scm (python-vedo)[arguments]: Adjust
custom 'check' phase to honor the #:tests? flag. Also remove its
trailing boolean.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Paul A. Patience 2022-04-22 20:25:54 +00:00 committed by Ludovic Courtès
parent b7d2644cd0
commit 34f49d15e6
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -876,15 +876,15 @@ (define-public python-vedo
(add-after 'build 'mpi-setup
,%openmpi-setup)
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(setenv "HOME" (getcwd))
(add-installed-pythonpath inputs outputs)
(with-directory-excursion "tests"
(for-each (lambda (dir)
(with-directory-excursion dir
(invoke "./run_all.sh")))
'("common" "dolfin")))
#t)))))
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(setenv "HOME" (getcwd))
(add-installed-pythonpath inputs outputs)
(with-directory-excursion "tests"
(for-each (lambda (dir)
(with-directory-excursion dir
(invoke "./run_all.sh")))
'("common" "dolfin")))))))))
(inputs ; for the check phase
`(("dolfin" ,fenics)
("pkgconfig" ,python-pkgconfig)