Skip to content

Commit

Permalink
🔀️ Merge branch 'ladislas/feature/ci-erase-robots-after-functional-te…
Browse files Browse the repository at this point in the history
…sts' into develop
  • Loading branch information
ladislas committed Oct 29, 2024
2 parents 53219a5 + 78d23a9 commit c52d47c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tools/run_functional_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ def main():
if fails:
ret = 1

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

return ret


Expand Down
10 changes: 8 additions & 2 deletions tools/run_system_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def parse_line(line):


def main():
ret = 0
connect_serial()

if FLASH_ERASE_FLAG:
Expand All @@ -257,10 +258,15 @@ def main():

if deep_sleep >= DEEP_SLEEP_PERCENTAGE:
print(Fore.GREEN + f"Deep sleep is higher than {DEEP_SLEEP_PERCENTAGE}%, this is good! ✅" + Style.RESET_ALL)
return 0
ret = 0
else:
print(Fore.RED + f"Deep sleep is lower than {DEEP_SLEEP_PERCENTAGE}%, this is bad! ❌" + Style.RESET_ALL)
return 1
ret = 1

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

return ret


if __name__ == '__main__':
Expand Down

0 comments on commit c52d47c

Please sign in to comment.