Subject: [PATCH 51/51] gnu: emacs-pass: Disable tests.

From: Nicolas Graves <[email-masked]>
Date: Thu, 20 Mar 2025 11:08:59 +0100

* gnu/packages/emacs-xyz.scm (emacs-pass)
[arguments]{tests?}: Disable them.
---
 gnu/packages/emacs-xyz.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 96d81cf0dd..82890dfc70 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -24846,6 +24846,15 @@ (define-public emacs-pass
        (sha256
         (base32 "0jc8j421mlflspg24jvrqc2n3y5n3cpk3hjy560il8g36xi1049p"))))
     (build-system emacs-build-system)
+    (arguments
+     (list #:tests? #f  ; Tests require a tty.
+           #:test-command
+           #~(apply list "emacs"
+                    (append
+                     (apply append
+                            (map (lambda (file) (list "-l" file))
+                                 (find-files "." "\\.el")))
+                     (list "-f" "ert-run-tests-batch-and-exit")))))
     (propagated-inputs
      (list emacs-password-store emacs-f))
     (home-page "https://github.com/NicolasPetton/pass")
-- 
2.48.1