summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-10-04 17:38:57 +0700
committerhathach <[email protected]>2024-10-04 17:38:57 +0700
commit31c123aa32f643c18ca14ff9e348e4c2d66e3963 (patch)
treef4bcf99686a11da0d21870a17562878b4a208684 /test
parent0abd6474d95055bcaafcd2c794ae726ffdee6f9f (diff)
update new json change
Diffstat (limited to 'test')
-rw-r--r--test/hil/hil_test.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/hil/hil_test.py b/test/hil/hil_test.py
index eaa9dd3bd..50f72b30f 100644
--- a/test/hil/hil_test.py
+++ b/test/hil/hil_test.py
@@ -424,20 +424,20 @@ def test_board(board):
test_list.append('device/board_test')
err_count = 0
- flags_opt_list = [""]
- if 'build_flags_on' in board:
- flags_opt_list = board['build_flags_on']
+ flags_on_list = [""]
+ if 'build' in board and 'flags_on' in board['build']:
+ flags_on_list = board['build']['flags_on']
- for flags_opt in flags_opt_list:
- flags_opt_str = ""
- if flags_opt != "":
- flags_opt_str = '-' + flags_opt.replace(' ', '-')
+ for f1 in flags_on_list:
+ f1_str = ""
+ if f1 != "":
+ f1_str = '-' + f1.replace(' ', '-')
for test in test_list:
- fw_dir = f'cmake-build/cmake-build-{name}{flags_opt_str}/{test}'
+ fw_dir = f'cmake-build/cmake-build-{name}{f1_str}/{test}'
if not os.path.exists(fw_dir):
- fw_dir = f'examples/cmake-build-{name}{flags_opt_str}/{test}'
+ fw_dir = f'examples/cmake-build-{name}{f1_str}/{test}'
fw_name = f'{fw_dir}/{os.path.basename(test)}'
- print(f'{name+flags_opt_str:40} {test:30} ... ', end='')
+ print(f'{name+f1_str:40} {test:30} ... ', end='')
if not os.path.exists(fw_dir):
print('Skip (no binary)')