summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2023-05-01 13:46:11 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-01 23:29:05 +0000
commit1186ffc915f9c1a49c6beae6d3e659623f7df81e (patch)
treec677dbe44c4f45fd9d34452f692dfdb75ea6bf47
parentd639267942a8ddc2175190efa725d6662c8e1c2f (diff)
downloadchrome-ec-stabilize-15446.B-main.tar.gz
utils: Only exclude certain zephyr filesstabilize-15446.B-main
When looking for bad lines that have coverage reported, only exclude a few files instead of all of zephyr. Commit a10cb8394d26d9c369eb5bd1c2ab64f0e955a898 caused bad lines in kernel/init.c, and this script could not see them. BRANCH=None BUG=b:272518464 TEST=./util/find_non_exec_lines.py build/zephyr/lcov.info Change-Id: Ic3dfd6783f4a556759be8e43ed97d36454743ab3 Signed-off-by: Jeremy Bettis <jbettis@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4496382 Reviewed-by: Simon Glass <sjg@chromium.org> Auto-Submit: Jeremy Bettis <jbettis@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org>
-rwxr-xr-xutil/find_non_exec_lines.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/util/find_non_exec_lines.py b/util/find_non_exec_lines.py
index e88d3f61ff..af5e972c79 100755
--- a/util/find_non_exec_lines.py
+++ b/util/find_non_exec_lines.py
@@ -36,7 +36,16 @@ def main() -> int:
active_name = line[3:]
# There are several files in zephyr that have odd coverage
# but it seems consistent.
- if not "src/third_party/zephyr" in active_name:
+ if (
+ not "src/third_party/zephyr/cmsis/CMSIS/Core/Include/core_cm4.h"
+ in active_name
+ and not "src/third_party/zephyr/main/arch/arm/core/aarch32/mpu/arm_mpu.c"
+ in active_name
+ and not "src/third_party/zephyr/main/drivers/clock_control/clock_control_mchp_xec.c"
+ in active_name
+ and not "src/third_party/zephyr/main/lib/libc/minimal/include/"
+ in active_name
+ ):
active_file = open( # pylint: disable=R1732
active_name, encoding="utf-8"
)