Skip to content

Commit be7184d

Browse files
authored
Fix check_complexity (#416)
1 parent d901786 commit be7184d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/smoke_test.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ run_tree_sitter () {
3232

3333
if [ ! -e "$PRODUCE_REPORTS" ]; then
3434
local report_file="report-$name.txt"
35-
echo "$out" | sed G | sed -E 's/([0-9]+) ms//' | grep -v 'success percentage' > "report-$name.txt"
35+
echo "$out" | sed G | sed -E 's/([0-9]+) ms//' | grep -v 'success percentage' > "report-$name.txt"
3636
echo "Report written to $report_file"
3737
fi
3838

@@ -50,7 +50,7 @@ run_tree_sitter () {
5050
check_complexity () {
5151
local expected=$1
5252
name="complexity"
53-
cmd="npm exec -c 'tree-sitter generate --report-states-for-rule compilation_unit' 2>&1"
53+
cmd="npm exec -c 'tree-sitter generate --report-states-for-rule compilation_unit' 2>&1 >/dev/null"
5454
echo
5555
echo "Checking syntax complexity: $cmd"
5656
out=$( (eval "$cmd") || true)

0 commit comments

Comments
 (0)