guix-commits
[Top][All Lists]
Advanced

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

04/04: gnu: python-testtools: Honor #:tests? in check phase.


From: guix-commits
Subject: 04/04: gnu: python-testtools: Honor #:tests? in check phase.
Date: Wed, 11 Aug 2021 09:37:08 -0400 (EDT)

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

commit 43bc7dd39c3d7891c9f35a8372a520f4afdc7875
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Aug 11 16:19:40 2021 +0300

    gnu: python-testtools: Honor #:tests? in check phase.
    
    * gnu/packages/check.scm (python-testtools)[arguments]: Adjust custom
    'check phase to honor #:tests.
---
 gnu/packages/check.scm | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index e5bd7da..ff3eb8b 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1430,11 +1430,13 @@ subprocess and see the output as well as any file 
modifications.")
     (inherit python-testtools-bootstrap)
     (name "python-testtools")
     (arguments
-     `(#:phases (modify-phases %standard-phases
-                  (replace 'check
-                    (lambda _
-                      (invoke "python" "-m" "testtools.run"
-                              "testtools.tests.test_suite"))))))
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "python" "-m" "testtools.run"
+                       "testtools.tests.test_suite")))))))
     (propagated-inputs
      `(("python-extras" ,python-extras)
        ("python-fixtures" ,python-fixtures)



reply via email to

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