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)
This commit is contained in:
Philip Kaludercic 2026-07-26 22:37:09 +02:00 committed by Paul Eggert
parent d6381e5df9
commit c4d50ea097

View file

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