From 6a19176043bc0f4d557e613a5292a8fc1e94b255 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Thu, 21 Nov 2024 02:40:39 -0500 Subject: [PATCH] Fix complexity check --- script/smoke_test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/smoke_test.sh b/script/smoke_test.sh index c1a7eb8..eb3137d 100755 --- a/script/smoke_test.sh +++ b/script/smoke_test.sh @@ -61,7 +61,8 @@ check_complexity () { echo "Report written to $report_file" fi - top=$(echo "$out" | head -n 1 | sed 's/ \+/ /g') + out1=$(echo "$out" | grep -v "ExperimentalWarning" | grep -v "experimental" | grep -v "node") + top=$(echo "$out1" | head -n 1 | sed 's/ \+/ /g') top_definition=$(echo "$top" | cut -d' ' -f1) top_definition_line=$(grep -n "$top_definition:" grammar.js | head -n 1 | cut -d : -f 1) actual=$(echo "$top" | cut -d' ' -f2)