guix-commits
[Top][All Lists]
Advanced

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

08/09: gnu: indi: Respect #:tests?.


From: guix-commits
Subject: 08/09: gnu: indi: Respect #:tests?.
Date: Tue, 4 May 2021 09:41:26 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 9a40c1d5bb09cf5dda3604125e72e51300f16d77
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Tue May 4 13:35:54 2021 +0200

    gnu: indi: Respect #:tests?.
    
    * gnu/packages/astronomy.scm (indi)[arguments]: Respect #:tests? in the
    'check phase.
---
 gnu/packages/astronomy.scm | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 0b54122..5dcb03e 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -816,11 +816,12 @@ provide you with detailed information about each pass.")
           (string-append "-DUDEVRULES_INSTALL_DIR=" out "/lib/udev/rules.d")))
        #:phases
        (modify-phases %standard-phases
-         (replace  'check
-           (lambda _
-             (with-directory-excursion "test"
-               (invoke "ctest"))
-             #t))
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (with-directory-excursion "test"
+                 (invoke "ctest"))
+               #t)))
          (add-before 'install 'set-install-directories
            (lambda* (#:key outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out")))



reply via email to

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