guix-commits
[Top][All Lists]
Advanced

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

02/04: gnu: python-fixtures: Honor tests? in the check phase.


From: guix-commits
Subject: 02/04: gnu: python-fixtures: Honor tests? in the 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 5037b08b934a68b297b0db484006d2d3ce026adb
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Aug 11 16:14:55 2021 +0300

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

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index eb20d0f..f6f225c 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1611,9 +1611,10 @@ python-fixtures package instead.")
      '(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda _
-             (invoke "python" "-m" "testtools.run"
-                     "fixtures.test_suite"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "python" "-m" "testtools.run"
+                       "fixtures.test_suite")))))))
     (propagated-inputs
      ;; Fixtures uses pbr at runtime to check versions, etc.
      `(("python-pbr" ,python-pbr)



reply via email to

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