Skip to content

Commit

Permalink
tests/ports/psoc6/../timer.py: Added workaround for BLE-063 board.
Browse files Browse the repository at this point in the history
Signed-off-by: enriquezgarc <[email protected]>
  • Loading branch information
jaenrig-ifx committed Oct 11, 2024
1 parent 04c1670 commit a02a1e4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/ports/psoc6/board_only_hw/single/timer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from machine import Timer
import time

Expand Down Expand Up @@ -76,3 +77,11 @@ def test_multiple_timers():
test_periodic()
print("*****Multiple Timers Execution*****")
test_multiple_timers()

# TODO: Timer tests need to be refined.
# The current implementation is not reliable.
# After this tests CY8CPROTO-063-BLE board is not able to the subsequent test.
# This workaround works for
board = os.uname().machine
if "CY8CPROTO-063-BLE" in board:
time.sleep(3)

0 comments on commit a02a1e4

Please sign in to comment.