efraim pushed a commit to branch master
in repository guix.

commit ed3f818b15d88f75e57db1fd107d8b5c995ceef5
Author: Efraim Flashner <[email protected]>
AuthorDate: Mon May 13 10:52:54 2024 +0300

    gnu: alfa: Reuse 'check phase.
    
    * gnu/packages/astronomy.scm (alfa)[arguments]: Set test-target. Replace
    custom 'post-install-check phase with the standard 'check phase.
    
    Change-Id: Ic5f77ac3a3a6ef62ce36ad5fa8892db6d0894d04
---
 gnu/packages/astronomy.scm | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index dd90884e12..3701a7e90c 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -130,13 +130,12 @@
            #:tests? (not (or (%current-target-system)
                              ;; The test suite consumes all disk space
                              (target-riscv64?)))
+           #:test-target "fittest"
            #:phases #~(modify-phases %standard-phases
                         (delete 'configure)
                         (delete 'check)
                         (add-after 'install 'post-install-check
-                          (lambda* (#:key tests? #:allow-other-keys)
-                            (when tests?
-                              (invoke "make" "fittest")))))))
+                          (assoc-ref %standard-phases 'check)))))
     (inputs (list cfitsio gfortran))
     (home-page "https://nebulousresearch.org/codes/alfa/";)
     (synopsis "Automated line fitting algorithm")

Reply via email to