summary refs log tree commit diff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-03-22 10:39:26 +0200
committerEfraim Flashner <efraim@flashner.co.il>2023-03-22 10:40:35 +0200
commit66b2fd0d045ecd94ec3b13904f2a09f81d35e6cb (patch)
tree9057e2b274e71a515b0540f086b0fe507cf937b3
parenta08d3cba83d189f11446ea5484f6482b1f473230 (diff)
downloadguix-66b2fd0d045ecd94ec3b13904f2a09f81d35e6cb.tar.gz
gnu: flatpak: Honor the #:tests? flag.
* gnu/packages/package-management.scm (flatpak)[arguments]: Adjust
custom 'check phase to honor the #:tests? flag.
-rw-r--r--gnu/packages/package-management.scm10
1 files changed, 6 insertions, 4 deletions
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm
index abd60da798..562d228cf4 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -1959,10 +1959,12 @@ cp -r /tmp/locale/*/en_US.*")))
           ;; Many tests fail for unknown reasons, so we just run a few basic
           ;; tests.
           (replace 'check
-            (lambda _
-              (setenv "HOME" "/tmp")
-              (invoke "make" "check"
-                      "TESTS=tests/test-basic.sh tests/test-config.sh testcommon"))))))
+            (lambda* (#:key tests? #:allow-other-keys)
+              (when tests?
+                (setenv "HOME" "/tmp")
+                (invoke "make" "check"
+                        "TESTS=tests/test-basic.sh tests/test-config.sh
+                        testcommon")))))))
     (native-inputs
      (list bison
            dbus ; for dbus-daemon