List all boards that have build_info.json files. Returns: List of board names that have been built
(self)
| 99 | self.build_dir = Path(build_dir) |
| 100 | |
| 101 | def list_available_boards(self) -> list[str]: |
| 102 | """ |
| 103 | List all boards that have build_info.json files. |
| 104 | |
| 105 | Returns: |
| 106 | List of board names that have been built |
| 107 | """ |
| 108 | boards: list[str] = [] |
| 109 | if not self.build_dir.exists(): |
| 110 | return boards |
| 111 | |
| 112 | for item in self.build_dir.iterdir(): |
| 113 | if item.is_dir() and (item / "build_info.json").exists(): |
| 114 | boards.append(item.name) |
| 115 | |
| 116 | return sorted(boards) |
| 117 | |
| 118 | def get_build_info_path(self, board_name: str) -> Optional[Path]: |
| 119 | """ |
no test coverage detected