Skip to content

Commit 91212de

Browse files
committed
ci: Non-safely fix python files
Uses ruff with --unsafe-fixes to fix python files in this folder This is a separate commit so it can be reverted if it causes problems Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
1 parent f23154c commit 91212de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ci/fih_test_docker/generate_test_report.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ def print_results(results):
2727
test_with_skip = test_stats[CATEGORIES['SUCCESS']] - test_stats[CATEGORIES['ADDRES_NOEXEC']]
2828
print(" {:s}: ({:d}):".format(CATEGORIES['SKIPPED'], test_with_skip))
2929
print(" {:s} ({:d}):".format(CATEGORIES['NO_BOOT'], test_with_skip - test_stats[CATEGORIES['BOOT']]))
30-
for last_line in failed_boot_last_lines.keys():
30+
for last_line in failed_boot_last_lines:
3131
print(f" last line: {last_line:s} ({failed_boot_last_lines[last_line]:d})")
3232
print(" {:s} ({:d})".format(CATEGORIES['BOOT'], test_stats[CATEGORIES['BOOT']]))
3333
print("{:s} ({:d}):".format(CATEGORIES['FAILED'], test_stats[CATEGORIES['TOTAL']] - test_stats[CATEGORIES['SUCCESS']]))
34-
for reason in exec_fail_reasons.keys():
34+
for reason in exec_fail_reasons:
3535
print(f" {reason:s} ({exec_fail_reasons[reason]:d})")
3636

3737

ci/fih_test_docker/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def parse_yaml_file(filepath):
4848
if test["test_exec_ok"]:
4949
test_stats.update([CATEGORIES['SUCCESS']])
5050

51-
if "skipped" in test.keys() and not test["skipped"]:
51+
if "skipped" in test and not test["skipped"]:
5252
# The debugger didn't stop at this address
5353
test_stats.update([CATEGORIES['ADDRES_NOEXEC']])
5454
continue

0 commit comments

Comments
 (0)