From c4d50ea0974b1366e5bfe55b3ea7802bb34b2c73 Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Sun, 26 Jul 2026 22:37:09 +0200 Subject: [PATCH] Skip all package-vc tests if git is not installed * test/lisp/emacs-lisp/package-vc-tests.el (package-vc-test-deftest): Inject a 'skip-unless' at the beginning of the test definition to check if "git" is installed, as we test package-vc using vc-git. (Bug#81470) --- test/lisp/emacs-lisp/package-vc-tests.el | 1 + 1 file changed, 1 insertion(+) diff --git a/test/lisp/emacs-lisp/package-vc-tests.el b/test/lisp/emacs-lisp/package-vc-tests.el index aa25d0a2c32..83467e4ee3b 100644 --- a/test/lisp/emacs-lisp/package-vc-tests.el +++ b/test/lisp/emacs-lisp/package-vc-tests.el @@ -776,6 +776,7 @@ contains key `:tags' use its value as tests tags." `(cl-macrolet ((skip-when (form) `(ert--skip-when ,form)) (skip-unless (form) `(ert--skip-unless ,form))) (let ((,fn (lambda (,pkg-arg) + (skip-unless (executable-find vc-git-program)) ,@skip-forms (package-vc-tests-with-installed ,pkg-arg (lambda () ,@body)))))