[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/04: gnu: python-zope-exceptions: Respect '--without-tests'.
From: |
guix-commits |
Subject: |
01/04: gnu: python-zope-exceptions: Respect '--without-tests'. |
Date: |
Tue, 12 Oct 2021 18:23:35 -0400 (EDT) |
mbakke pushed a commit to branch core-updates-frozen
in repository guix.
commit 6c1724f6cd5636605e0aa1acbf6aadde41bd5004
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Oct 12 23:51:33 2021 +0200
gnu: python-zope-exceptions: Respect '--without-tests'.
* gnu/packages/python-web.scm (python-zope-exceptions)[arguments]: Honor
TESTS? argument in check phase.
---
gnu/packages/python-web.scm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 5335aa0..e058b4c 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1920,8 +1920,10 @@ conforming to a given API or contract.")
'(#:phases
(modify-phases %standard-phases
(replace 'check
- (lambda _
- (invoke "zope-testrunner" "--test-path=src"))))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (if tests?
+ (invoke "zope-testrunner" "--test-path=src")
+ (format #t "test suite not run~%")))))))
(native-inputs
`(("python-zope-testrunner" ,python-zope-testrunner-bootstrap)))
(propagated-inputs