Skip to content

Commit

Permalink
✅ (functional): Rename erase_flash method
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Oct 29, 2024
1 parent c52d47c commit 5542a70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/run_functional_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def print_summary():
RUN_TESTS = list()


def flash_erase():
def erase_flash():
ret = os.system("st-flash --connect-under-reset --reset erase")
return ret

Expand All @@ -332,7 +332,7 @@ def main():
sys.exit(1)

if FLASH_ERASE_FLAG:
flash_erase()
erase_flash()

reset_buffer()

Expand All @@ -344,7 +344,7 @@ def main():
RUN_TESTS.append(test)

if FLASH_ERASE_FLAG:
flash_erase()
erase_flash()

reset_buffer()

Expand All @@ -353,7 +353,7 @@ def main():
ret = 1

print("Erasing flash after tests...")
flash_erase()
erase_flash()

return ret

Expand Down

0 comments on commit 5542a70

Please sign in to comment.