Skip to content

Commit

Permalink
Fix check_complexity (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
sideeffffect authored Aug 8, 2024
1 parent d901786 commit be7184d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/smoke_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ run_tree_sitter () {

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

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

0 comments on commit be7184d

Please sign in to comment.