From 57bf228b66ad14eb5a9165751ee9aeda1acc5b47 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 6 Jan 2022 21:28:42 +0200 Subject: gnu: terminology: Respect #:tests? flag. * gnu/packages/enlightenment.scm (terminology)[arguments]: Adjust custom 'check phase to honor the #:tests? flag. --- gnu/packages/enlightenment.scm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'gnu/packages/enlightenment.scm') diff --git a/gnu/packages/enlightenment.scm b/gnu/packages/enlightenment.scm index 347b7ea9c6..bfb93d9534 100644 --- a/gnu/packages/enlightenment.scm +++ b/gnu/packages/enlightenment.scm @@ -235,11 +235,12 @@ removable devices or support for multimedia.") ;; FATAL: Cannot create run dir '/homeless-shelter/.run' - errno=2 (lambda _ (setenv "HOME" "/tmp"))) (replace 'check - (lambda _ - (with-directory-excursion - (string-append "../" ,name "-" ,version "/tests") - (invoke "sh" "run_tests.sh" "--verbose" - "-t" "../../build/src/bin/tytest")))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion + (string-append "../" ,name "-" ,version "/tests") + (invoke "sh" "run_tests.sh" "--verbose" + "-t" "../../build/src/bin/tytest"))))) (add-after 'install 'remove-test-binary (lambda* (#:key outputs #:allow-other-keys) ;; This file is not meant to be installed. -- cgit 1.4.1