From 99bb4b9581e27c4c2517025852208e29107c54f9 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 31 Aug 2023 10:40:55 +0000 Subject: [PATCH] ci: testplan: fix include path Add zephyr to the include path detection. Signed-off-by: Anas Nashif --- scripts/ci/test_plan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci/test_plan.py b/scripts/ci/test_plan.py index 8f2f24b08256bf..2d5e4dedce8045 100755 --- a/scripts/ci/test_plan.py +++ b/scripts/ci/test_plan.py @@ -167,7 +167,7 @@ def find_modules(self): def find_archs(self): - # we match both arch//* and include/arch/ and skip common. + # we match both arch//* and include/zephyr/arch/ and skip common. # Some architectures like riscv require special handling, i.e. riscv # directory covers 2 architectures known to twister: riscv32 and riscv64. archs = set() @@ -175,7 +175,7 @@ def find_archs(self): for f in self.modified_files: p = re.match(r"^arch\/([^/]+)\/", f) if not p: - p = re.match(r"^include\/arch\/([^/]+)\/", f) + p = re.match(r"^include\/zephyr\/arch\/([^/]+)\/", f) if p: if p.group(1) != 'common': if p.group(1) == 'riscv':