guix-commits
[Top][All Lists]
Advanced

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

07/07: gnu: toot: Honor the #:tests? flag.


From: guix-commits
Subject: 07/07: gnu: toot: Honor the #:tests? flag.
Date: Fri, 26 Nov 2021 09:00:53 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit 3d6040c13522122df496c862c0ca2ddf8b28b71c
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Fri Nov 26 15:52:57 2021 +0200

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

diff --git a/gnu/packages/mastodon.scm b/gnu/packages/mastodon.scm
index f23ff06..4847bbe 100644
--- a/gnu/packages/mastodon.scm
+++ b/gnu/packages/mastodon.scm
@@ -52,9 +52,10 @@
      '(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda* (#:key inputs outputs #:allow-other-keys)
-             (add-installed-pythonpath inputs outputs)
-             (invoke "py.test"))))))
+           (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               (invoke "py.test")))))))
     (native-inputs
      `(("python-pytest" ,python-pytest)))
     (inputs



reply via email to

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