Subject: [PATCH v3 07/53] gnu: emacs-magit-annex: Skip tests.

From: Nicolas Graves <[email-masked]>
Date: Sun, 18 May 2025 10:16:06 +0200

* gnu/packages/emacs-xyz.scm (emacs-magit-annex)
  [arguments]<tests?>: Skip them.
  <test-command>: Set it.
---
 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 4a7d4d939d..9f75412f90 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -2101,6 +2101,15 @@ (define-public emacs-magit-annex
        (sha256
         (base32 "0gbrn80xcwhfav962hjv6lhx444b81jknzj22zb8d5piqfpg8rvc"))))
     (build-system emacs-build-system)
+    (arguments
+     (list #:tests? #f  ; tests rely on an older version of emacs-magit.
+           #:test-command
+           (let ((emacs-magit (this-package-input "emacs-magit")))
+             #~(list "make" "test"
+                     (string-append "MAGIT_DIR="
+                                    #$emacs-magit
+                                    "/share/emacs/site-lisp/magit-"
+                                    #$(package-version emacs-magit))))))
     (propagated-inputs (list emacs-magit))
     (home-page "https://github.com/magit/magit-annex/")
     (synopsis "Git-annex support for Magit")
-- 
2.49.0