From 7f540e3ce0eecb1dedf18e51ac6b161a13a2c625 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Tue, 4 May 2021 13:34:21 +0200 Subject: gnu: indi: Check slightly more functionally. * gnu/packages/astronomy.scm (indi)[arguments]: Substitute WITH-DIRECTORY-EXCURSION for double CHDIR. --- gnu/packages/astronomy.scm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gnu/packages/astronomy.scm') diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index c55c4d8062..0b54122068 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -818,9 +818,8 @@ (define-public indi (modify-phases %standard-phases (replace 'check (lambda _ - (chdir "test") - (invoke "ctest") - (chdir "..") + (with-directory-excursion "test" + (invoke "ctest")) #t)) (add-before 'install 'set-install-directories (lambda* (#:key outputs #:allow-other-keys) -- cgit v1.2.3