aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/astronomy.scm5
1 files changed, 2 insertions, 3 deletions
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 @@ provide you with detailed information about each pass.")
(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)