doc: _scripts: boards: fix for boards without revisions

Commit 38b8790 introduced a pretty bad regression for boards without
revisions. Fix by correctly checking for actually undefined revisions

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2025-04-15 10:42:21 +02:00 committed by Benjamin Cabé
commit 3c2d2a6ee5

View file

@ -163,7 +163,7 @@ def gather_board_build_info(twister_out_dir):
revision = board_info.get('revision', '')
board_target = board_name
if revision is not None:
if revision != '':
board_target = f"{board_target}@{revision}"
if qualifier:
board_target = f"{board_target}/{qualifier}"