From 49087fd372752308cb716fdf31c08d566e225096 Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Fri, 16 Sep 2022 19:12:37 +0200 Subject: Skip test if Cargo isn’t installed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This test requires Cargo and fails if it’s not installed. --- rust-mode-tests.el | 1 + 1 file changed, 1 insertion(+) diff --git a/rust-mode-tests.el b/rust-mode-tests.el index 6c967bf..e4949b2 100644 --- a/rust-mode-tests.el +++ b/rust-mode-tests.el @@ -3482,6 +3482,7 @@ impl Two<'a> { "let x = dbg!(\"foo, bar\")")) (ert-deftest rust-test-project-located () + (skip-unless (executable-find rust-cargo-bin)) (let* ((test-dir (expand-file-name "test-project/" default-directory)) (manifest-file (expand-file-name "Cargo.toml" test-dir))) (let ((default-directory test-dir)) -- cgit v1.2.3