From: João Távora Date: Mon, 12 Dec 2022 09:39:32 +0000 (+0000) Subject: Skip Eglot rust-analyzer tests if 'cargo' isn't available X-Git-Tag: emacs-29.0.90~1225 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=081bf5830070b8e9d1fcf695e8da6cd0cb89b553;p=emacs.git Skip Eglot rust-analyzer tests if 'cargo' isn't available * test/lisp/progmodes/eglot-tests.el (project-wide-diagnostics-rust-analyzer) (diagnostic-tags-unnecessary-code): Skip unless "cargo" is found. --- diff --git a/test/lisp/progmodes/eglot-tests.el b/test/lisp/progmodes/eglot-tests.el index 2b4de8c27d0..fd0a68973ea 100644 --- a/test/lisp/progmodes/eglot-tests.el +++ b/test/lisp/progmodes/eglot-tests.el @@ -431,6 +431,7 @@ Pass TIMEOUT to `eglot--with-timeout'." (ert-deftest diagnostic-tags-unnecessary-code () "Test rendering of diagnostics tagged \"unnecessary\"." (skip-unless (executable-find "rust-analyzer")) + (skip-unless (executable-find "cargo")) (eglot--with-fixture '(("diagnostic-tag-project" . (("main.rs" . @@ -780,6 +781,7 @@ pylsp prefers autopep over yafp, despite its README stating the contrary." (ert-deftest project-wide-diagnostics-rust-analyzer () "Test diagnostics through multiple files in a TypeScript LSP." (skip-unless (executable-find "rust-analyzer")) + (skip-unless (executable-find "cargo")) (eglot--with-fixture '(("project" . (("main.rs" .