mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
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:
parent
d6381e5df9
commit
c4d50ea097
|
|
@ -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)))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue