From 081bf5830070b8e9d1fcf695e8da6cd0cb89b553 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Mon, 12 Dec 2022 09:39:32 +0000 Subject: [PATCH] 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. --- test/lisp/progmodes/eglot-tests.el | 2 ++ 1 file changed, 2 insertions(+) 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" . -- 2.39.2