Skip to content

Commit 22ac0f3

Browse files
committed
Fix integration tests detected_boards fixture
1 parent 2c40e02 commit 22ac0f3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: test/conftest.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,12 @@ def detected_boards(run_command):
203203

204204
detected_boards = []
205205
for port in json.loads(result.stdout):
206-
for board in port.get("boards", []):
207-
fqbn = board.get("FQBN")
208-
if not fqbn:
209-
continue
206+
for board in port.get("matching_boards", []):
207+
fqbn = board.get("fqbn")
210208
package, architecture, _id = fqbn.split(":")
211209
detected_boards.append(
212210
Board(
213-
address=port.get("address"),
211+
address=port["port"]["address"],
214212
fqbn=fqbn,
215213
package=package,
216214
architecture=architecture,

0 commit comments

Comments
 (0)