Skip to content

Commit

Permalink
ci: testplan: fix include path
Browse files Browse the repository at this point in the history
Add zephyr to the include path detection.

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif committed Oct 23, 2023
1 parent f0326f7 commit 99bb4b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ci/test_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,15 @@ def find_modules(self):


def find_archs(self):
# we match both arch/<arch>/* and include/arch/<arch> and skip common.
# we match both arch/<arch>/* and include/zephyr/arch/<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()

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':
Expand Down

0 comments on commit 99bb4b9

Please sign in to comment.