scripts: ci: check_compliance: Fix paths for disallowed Kconfigs

Fixes using the wrong path for checking if disallowed Kconfigs
are present, to use the zephyr base instead of the git top level
folder which caused issues for downstream manifests

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae 2025-02-14 12:47:32 +00:00 committed by Fabio Baltieri
commit 5e1aaa5395

View file

@ -715,10 +715,10 @@ class KconfigCheck(ComplianceTest):
grep_stdout_boards = git("grep", "--line-number", "-I", "--null",
"--perl-regexp", regex_boards, "--", ":boards",
cwd=Path(GIT_TOP))
cwd=ZEPHYR_BASE)
grep_stdout_socs = git("grep", "--line-number", "-I", "--null",
"--perl-regexp", regex_socs, "--", ":soc",
cwd=Path(GIT_TOP))
cwd=ZEPHYR_BASE)
# Board processing
# splitlines() supports various line terminators