guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/08: gnu: simgear: Honor #:tests? flag.


From: guix-commits
Subject: 03/08: gnu: simgear: Honor #:tests? flag.
Date: Wed, 3 Nov 2021 18:12:29 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 230b34cb5c88bcfda155094fde85a0a125f490f2
Author: Efraim Flashner <efraim@flashner.co.il>
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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]