Commit fe25709a authored by Torsten Rasmussen's avatar Torsten Rasmussen Committed by Carles Cufi
Browse files

twister: add unit_testing soc and board

Create board.yml and soc.yml for the unit_testing board so that
list_board.py can correctly find those boards for twister unit test
test-cases.

Signed-off-by: default avatarTorsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
parent f88f211b
Loading
Loading
Loading
Loading
+5 −0
Changes for scripts/pylib/twister/boards/unit/unit_testing/board.yml: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
board:
  name: unit_testing
  vendor: zephyr
  socs:
  - name: unit_testing
+2 −0
Changes for scripts/pylib/twister/soc/unit/unit_testing/soc.yml: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
socs:
- name: unit_testing
+2 −1
Changes for scripts/pylib/twister/twisterlib/testplan.py: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -404,7 +404,8 @@ class TestPlan:
        # Note, internally in twister a board root includes the `boards` folder
        # but in Zephyr build system, the board root is without the `boards` in folder path.
        board_roots = [Path(os.path.dirname(root)) for root in self.env.board_roots]
        lb_args = Namespace(arch_roots=[Path(ZEPHYR_BASE)], soc_roots=[Path(ZEPHYR_BASE)],
        lb_args = Namespace(arch_roots=[Path(ZEPHYR_BASE)], soc_roots=[Path(ZEPHYR_BASE),
                            Path(ZEPHYR_BASE) / 'scripts' / 'pylib' / 'twister'],
                            board_roots=board_roots, board=None, board_dir=None)
        v1_boards = list_boards.find_boards(lb_args)
        v2_boards = list_boards.find_v2_boards(lb_args)