summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/linux.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 04684b05df..5e72040927 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -7178,8 +7178,9 @@ every time the power supply source is changed.")
          ;; configuration from /etc/tlp.conf or /etc/default/tlp".
          (delete 'sanity-check)
          (replace 'check
-           (lambda _
-             (invoke "python" "-m" "discover")))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "python" "-m" "discover"))))
          (add-after 'install 'wrap-gi-python
            (lambda* (#:key outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out"))