branch: externals/matlab-mode
commit db9de4f835cc4a83f4abed5e0e56a80f460e4ac0
Author: John Ciolfi <[email protected]>
Commit: John Ciolfi <[email protected]>

    tests/sweep-test-matlab-ts-grammar.sh: require matlab is on path
---
 tests/sweep-test-matlab-ts-grammar.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/sweep-test-matlab-ts-grammar.sh 
b/tests/sweep-test-matlab-ts-grammar.sh
index c4e4aa354d..d600c4f768 100755
--- a/tests/sweep-test-matlab-ts-grammar.sh
+++ b/tests/sweep-test-matlab-ts-grammar.sh
@@ -20,6 +20,12 @@
 #         Total-consistently-parsed-files: M of N
 #
 
+if ! command -v matlab > /dev/null 2>&1
+then
+    echo "matlab is not found (which matlab)"
+    exit 1
+fi
+
 EmacsMATLABModeDir=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null 
&& cd .. && pwd)
 
 emacs --batch \

Reply via email to