Skip to content

Commit 3252c54

Browse files
committed
Fix bug in syntax tests shell runner
1 parent 38c05b5 commit 3252c54

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

integration/vscode/ada/run_grammar_tests.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ run_test(){
3030
[ -f $src.snap.$syntax ] && mv $src.snap.$syntax $src.snap
3131
done
3232

33-
# Run the test
33+
# Run the test. Use a non-existing language config, otherwise the tool
34+
# automatically loads the grammar configured in the package.json
3435
echo -n "[Ada $syntax]\t"
3536
./node_modules/.bin/vscode-tmgrammar-snap -g $syntax/ada.tmLanguage.json \
37+
--config "none" \
3638
-s source.ada \
3739
$update \
3840
"$dir/*.ad?" || _err=1
@@ -60,8 +62,8 @@ error=0
6062
if [ "$testpath" != "" ]; then
6163
run_test $testpath || error=1
6264
else
63-
for dir in `ls testsuite_grammar`; do
64-
run_test testsuite_grammar/$dir || error=1
65+
for dir in `find test/TestWorkspace/highlighing -type d -depth 1`; do
66+
run_test $dir || error=1
6567
done
6668
fi
6769

0 commit comments

Comments
 (0)