guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/04: gnu: python-zope-component: Respect '--without-tests'.


From: guix-commits
Subject: 02/04: gnu: python-zope-component: Respect '--without-tests'.
Date: Tue, 12 Oct 2021 18:23:36 -0400 (EDT)

mbakke pushed a commit to branch core-updates-frozen
in repository guix.

commit 115352b5454d23663e2d1a1815bdd28513fb3dbf
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Wed Oct 13 00:06:00 2021 +0200

    gnu: python-zope-component: Respect '--without-tests'.
    
    * gnu/packages/python-web.scm (python-zope-component)[arguments]: Honor 
TESTS?
    in the check phase.
---
 gnu/packages/python-web.scm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index e058b4c..27133e4 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -2293,9 +2293,10 @@ security policies on Python objects.")
      '(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda* (#:key inputs outputs #:allow-other-keys)
-             (add-installed-pythonpath inputs outputs)
-             (invoke "python" "setup.py" "test"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (if tests?
+                 (invoke "python" "setup.py" "test")
+                 (format #t "test suite not run~%")))))))
     (native-inputs
      `(("python-persistent" ,python-persistent)
        ("python-zope-configuration" ,python-zope-configuration-bootstrap)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]