Skip to content

Commit a7d4253

Browse files
jaenrig-ifxactions-user
authored andcommitted
tests/ports/psoc6/../timer.py: Added workaround for BLE-063 board.
Signed-off-by: enriquezgarc <enriquezgarcia.external@infineon.com>
1 parent 17068bd commit a7d4253

File tree

1 file changed

+9
-0
lines changed
  • tests/ports/psoc6/board_only_hw/single

1 file changed

+9
-0
lines changed

tests/ports/psoc6/board_only_hw/single/timer.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
from machine import Timer
23
import time
34

@@ -76,3 +77,11 @@ def test_multiple_timers():
7677
test_periodic()
7778
print("*****Multiple Timers Execution*****")
7879
test_multiple_timers()
80+
81+
# TODO: Timer tests need to be refined.
82+
# The current implementation is not reliable.
83+
# After this tests CY8CPROTO-063-BLE board is not able to the subsequent test.
84+
# This workaround works for
85+
board = os.uname().machine
86+
if "CY8CPROTO-063-BLE" in board:
87+
time.sleep(3)

0 commit comments

Comments
 (0)