gnu: simgear: Honor #:tests? flag.

* gnu/packages/games.scm (simgear)[arguments]: Adjust custom 'check
phase to honor the #:tests? flag.
This commit is contained in:
Efraim Flashner 2021-11-03 22:01:23 +02:00
parent 3a5b1cc32a
commit 230b34cb5c
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -9275,9 +9275,10 @@ (define simgear
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
;; Skip tests that require internet access.
(invoke "ctest" "-E" "(http|dns)"))))))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Skip tests that require internet access.
(invoke "ctest" "-E" "(http|dns)")))))))
(inputs
`(("boost" ,boost-for-mysql) ; fails with 1.69
("curl" ,curl)