efraim pushed a commit to branch master
in repository guix.
commit 230b34cb5c88bcfda155094fde85a0a125f490f2
Author: Efraim Flashner <[email protected]>
AuthorDate: Wed Nov 3 22:01:23 2021 +0200
gnu: simgear: Honor #:tests? flag.
* gnu/packages/games.scm (simgear)[arguments]: Adjust custom 'check
phase to honor the #:tests? flag.
---
gnu/packages/games.scm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index f601e96..b1de90c 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -9275,9 +9275,10 @@ levels to unlock.")
`(#: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)