From 9a40c1d5bb09cf5dda3604125e72e51300f16d77 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Tue, 4 May 2021 13:35:54 +0200 Subject: 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 0b54122068..5dcb03ee5a 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -816,11 +816,12 @@ (define-public indi (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"))) -- cgit v1.2.3