me
/
guix
Archived
1
0
Fork 0

gnu: minetest: Respect --without-tests.

* gnu/packages/games.scm
  (minetest)[arguments]<#:phases>{check}: Use 'tests?' instead
  of ',(%current-target-system)'. Remove trailing #t.

Signed-off-by: Leo Prikler <leo.prikler@student.tugraz.at>
Maxime Devos 2021-08-10 17:07:15 +02:00 committed by Leo Prikler
parent 27952318a5
commit bfadab9177
No known key found for this signature in database
GPG Key ID: 442A84B8C70E2F87
1 changed files with 3 additions and 4 deletions

View File

@ -3633,13 +3633,12 @@ match, cannon keep, and grave-itation pit.")
(string-append (getcwd) "/games")) ; for check
#t))
(replace 'check
(lambda _
(lambda* (#:key tests? #:allow-other-keys)
;; Thanks to our substitutions, the tests should also run
;; when invoked on the target outside of `guix build'.
(unless ,(%current-target-system)
(when tests?
(setenv "HOME" "/tmp")
(invoke "src/minetest" "--run-unittests"))
#t)))))
(invoke "src/minetest" "--run-unittests")))))))
(native-search-paths
(list (search-path-specification
(variable "MINETEST_SUBGAME_PATH")