[bug#77131,51/51] gnu: emacs-pass: Disable tests.

Message ID 20250320100907.20485-51-ngraves@ngraves.fr
State New
Headers
Series [bug#77131,01/51] gnu: Add (gnu packages emacs-build) module. |

Commit Message

Nicolas Graves March 20, 2025, 10:08 a.m. UTC
  * gnu/packages/emacs-xyz.scm (emacs-pass)
[arguments]{tests?}: Disable them.
---
 gnu/packages/emacs-xyz.scm | 9 +++++++++
 1 file changed, 9 insertions(+)
  

Patch

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")