]> git.eshelyaron.com Git - emacs.git/commitdiff
Skip Eglot rust-analyzer tests if 'cargo' isn't available
authorJoão Távora <joaotavora@gmail.com>
Mon, 12 Dec 2022 09:39:32 +0000 (09:39 +0000)
committerJoão Távora <joaotavora@gmail.com>
Mon, 12 Dec 2022 09:53:10 +0000 (09:53 +0000)
* test/lisp/progmodes/eglot-tests.el
(project-wide-diagnostics-rust-analyzer)
(diagnostic-tags-unnecessary-code): Skip unless "cargo" is found.

test/lisp/progmodes/eglot-tests.el

index 2b4de8c27d02e707d28a146c2505916f5556a882..fd0a68973ea075721aba383af0f3e0fcf4e7c657 100644 (file)
@@ -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" .