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 c9c7871 + ee171df commit 7baae9cCopy full SHA for 7baae9c
run_rust_emacs_tests.sh
@@ -14,19 +14,21 @@
14
15
if [ -z "$EMACS" ]; then
16
EMACS=emacs
17
-elif [ ! $(which "$EMACS") ]; then
+fi
18
+
19
+$EMACS --batch || {
20
echo "You must set EMACS to a program that runs emacs."
21
exit 1
-fi
22
+}
23
-$( "$EMACS" -batch > /dev/null 2>&1 ) || {
24
+$( $EMACS -batch > /dev/null 2>&1 ) || {
25
echo "Your emacs command ($EMACS) does not run properly."
26
exit 2
27
};
28
-$( "$EMACS" -batch --eval "(require 'ert)" > /dev/null 2>&1 ) || {
29
+$( $EMACS -batch --eval "(require 'ert)" > /dev/null 2>&1 ) || {
30
echo 'You must install the `ert` dependency; see README.md'
31
exit 3
32
33
-"$EMACS" -batch -l rust-mode.el -l rust-mode-tests.el -f ert-run-tests-batch-and-exit
34
+$EMACS -batch -l rust-mode.el -l rust-mode-tests.el -f ert-run-tests-batch-and-exit
0 commit comments