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>
			
			
This commit is contained in:
		
							parent
							
								
									27952318a5
								
							
						
					
					
						commit
						bfadab9177
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		|  | @ -3633,13 +3633,12 @@ match, cannon keep, and grave-itation pit.") | ||||||
|                      (string-append (getcwd) "/games")) ; for check |                      (string-append (getcwd) "/games")) ; for check | ||||||
|              #t)) |              #t)) | ||||||
|          (replace 'check |          (replace 'check | ||||||
|            (lambda _ |            (lambda* (#:key tests? #:allow-other-keys) | ||||||
|              ;; Thanks to our substitutions, the tests should also run |              ;; Thanks to our substitutions, the tests should also run | ||||||
|              ;; when invoked on the target outside of `guix build'. |              ;; when invoked on the target outside of `guix build'. | ||||||
|              (unless ,(%current-target-system) |              (when tests? | ||||||
|                (setenv "HOME" "/tmp") |                (setenv "HOME" "/tmp") | ||||||
|                (invoke "src/minetest" "--run-unittests")) |                (invoke "src/minetest" "--run-unittests"))))))) | ||||||
|              #t))))) |  | ||||||
|     (native-search-paths |     (native-search-paths | ||||||
|      (list (search-path-specification |      (list (search-path-specification | ||||||
|             (variable "MINETEST_SUBGAME_PATH") |             (variable "MINETEST_SUBGAME_PATH") | ||||||
|  |  | ||||||
		Reference in a new issue