We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 66438d4 + 3878cc6 commit 9e83b30Copy full SHA for 9e83b30
run_rust_emacs_tests.sh
@@ -10,5 +10,13 @@
10
# except according to those terms.
11
#
12
# This runs the test for emacs rust-mode.
13
-# It must be possible to find emacs via PATH.
14
-emacs -batch -l rust-mode.el -l rust-mode-tests.el -f ert-run-tests-batch-and-exit
+# Either $EMACS must be set, or it must be possible to find emacs via PATH.
+
15
+if [ -z "$EMACS" ]; then
16
+ EMACS=emacs
17
+elif [ ! $(which "$EMACS") ]; then
18
+ echo "You must set EMACS to a program that runs emacs."
19
+ exit 1
20
+fi
21
22
+"$EMACS" -batch -l rust-mode.el -l rust-mode-tests.el -f ert-run-tests-batch-and-exit
0 commit comments