[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#54869] [PATCH v3 4/7] gnu: python-vedo: Honor #:tests? flag.
From: |
Paul A. Patience |
Subject: |
[bug#54869] [PATCH v3 4/7] gnu: python-vedo: Honor #:tests? flag. |
Date: |
Fri, 22 Apr 2022 20:25:54 +0000 |
* gnu/packages/python-science.scm (python-vedo)[arguments]: Adjust
custom 'check' phase to honor the #:tests? flag. Also remove its
trailing boolean.
---
gnu/packages/python-science.scm | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 07d713e013..4538904b68 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -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)
--
2.35.1
- [bug#54869] [PATCH v2 1/7] gnu: fenics-dolfin: Honor #:tests? flag., (continued)
- [bug#54869] [PATCH v2 1/7] gnu: fenics-dolfin: Honor #:tests? flag., Paul A. Patience, 2022/04/22
- [bug#54869] [PATCH v2 4/7] gnu: python-vedo: Honor #:tests? flag., Paul A. Patience, 2022/04/22
- [bug#54869] [PATCH v2 7/7] gnu: python-vedo: Update to 2022.2.0., Paul A. Patience, 2022/04/22
- [bug#54869] [PATCH v2 6/7] gnu: python-vedo: Disable sanity check., Paul A. Patience, 2022/04/22
- [bug#54869] [PATCH v2 5/7] gnu: python-vedo: Remove input labels., Paul A. Patience, 2022/04/22
- [bug#54869] [PATCH v3 0/7] gnu: python-vedo: Update to 2022.2.0., Paul A. Patience, 2022/04/22
- [bug#54869] [PATCH v3 2/7] gnu: fenics: Honor #:tests? flag., Paul A. Patience, 2022/04/22
- [bug#54869] [PATCH v3 3/7] gnu: fenics: Fix sanity check., Paul A. Patience, 2022/04/22
- [bug#54869] [PATCH v3 1/7] gnu: fenics-dolfin: Honor #:tests? flag., Paul A. Patience, 2022/04/22
- [bug#54869] [PATCH v3 4/7] gnu: python-vedo: Honor #:tests? flag.,
Paul A. Patience <=
- [bug#54869] [PATCH v3 6/7] gnu: python-vedo: Disable sanity check., Paul A. Patience, 2022/04/22
- [bug#54869] [PATCH v3 7/7] gnu: python-vedo: Update to 2022.2.0., Paul A. Patience, 2022/04/22
- [bug#54869] [PATCH v3 5/7] gnu: python-vedo: Remove input labels., Paul A. Patience, 2022/04/22