summaryrefslogtreecommitdiff
path: root/rust-mode-tests.el
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2022-09-16 19:12:37 +0200
committerPhilipp Stephani <phst@google.com>2022-09-16 19:12:37 +0200
commit49087fd372752308cb716fdf31c08d566e225096 (patch)
tree92e2c38e6bdfcdf6b1a5d6501cbd5873db5bf5ee /rust-mode-tests.el
parentfd8fe789abffb202f43a9edfbd691a0a5df51b58 (diff)
downloadrust-mode-49087fd372752308cb716fdf31c08d566e225096.tar.gz
Skip test if Cargo isn’t installed.
This test requires Cargo and fails if it’s not installed.
Diffstat (limited to 'rust-mode-tests.el')
-rw-r--r--rust-mode-tests.el1
1 files changed, 1 insertions, 0 deletions
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))