Skip to content

Commit 044da52

Browse files
committed
step
1 parent b06aeec commit 044da52

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

extra/ci_collect_logs.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
":x:",
2626
":fire:",
2727
":new_moon:" # -1
28-
}
28+
]
2929

3030
def artifact_count(count, status, icons):
3131
"""
@@ -193,12 +193,12 @@ def process_build_reports():
193193
header_row = "<tr><th colspan=2>Sketch / Board</th>"
194194
for board_data in artifact_boards:
195195
board = board_data['board']
196-
icon = BOARD_SUMMARY[board]['icon']
196+
status = BOARD_SUMMARY[board]['status']
197197
header_col = f"<code>{board}</code>"
198198
if BOARD_SUMMARY[board]['job_link']:
199199
link = BOARD_SUMMARY[board]['job_link']
200200
header_col = f"<a href='{link}'>{header_col}</a>"
201-
header_col += f"<br/>{icon}"
201+
header_col += f"<br/>{BOARD_STATUS[status]}"
202202
header_row += f"<th>{header_col}</th>"
203203
header_row += "</tr>"
204204

@@ -217,7 +217,7 @@ def process_build_reports():
217217
sketch_status = max(sketch_status, status)
218218
issues = test_result['issues'] if test_result else ""
219219
sketch_id = sketch_name.replace('/', '_').replace(' ', '_').replace('-', '_')
220-
icon_link = f"<a href='#{sketch_id}_{board_name}'>{icon}</a>" if issues else icon
220+
icon_link = f"<a href='#{sketch_id}_{board_name}'>{TEST_STATUS[status]}</a>" if issues else TEST_STATUS[status]
221221
row_data += f"<td align='center'>{icon_link}</a></td>"
222222
print(f"<tr><td>{TEST_STATUS[sketch_status]}</td><td><code>{example_name(sketch_name)}</code></td>{row_data}</tr>")
223223
print("</table>\n")
@@ -233,7 +233,7 @@ def process_build_reports():
233233
continue
234234

235235
test_result = board_results[board_name]
236-
icon = TEST_STATUS[test_result['status']]
236+
status = test_result['status']
237237
issues = test_result['issues']
238238
if not issues:
239239
continue
@@ -247,7 +247,7 @@ def process_build_reports():
247247
if job_link:
248248
job_link = f" <a href='{job_link}'> :scroll:</a>"
249249
sketch_id = sketch_name.replace('/', '_').replace(' ', '_').replace('-', '_')
250-
print(f"<details id='{sketch_id}_{board_name}'><summary>{artifact_count(len(issues), icon)} <code>{board_name}</code>{job_link}</summary>")
250+
print(f"<details id='{sketch_id}_{board_name}'><summary>{artifact_count(len(issues), status, TEST_STATUS)} <code>{board_name}</code>{job_link}</summary>")
251251
print("\n```\n" + "\n".join(issues) + "\n```")
252252
print("</details>")
253253

0 commit comments

Comments
 (0)