From a02a1e4208e194dba9bf5ca11ddf52f7d95a2012 Mon Sep 17 00:00:00 2001 From: enriquezgarc Date: Thu, 10 Oct 2024 16:20:08 +0200 Subject: [PATCH] tests/ports/psoc6/../timer.py: Added workaround for BLE-063 board. Signed-off-by: enriquezgarc --- tests/ports/psoc6/board_only_hw/single/timer.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/ports/psoc6/board_only_hw/single/timer.py b/tests/ports/psoc6/board_only_hw/single/timer.py index f0bdb4f1d36fc..6d9eb034422fe 100644 --- a/tests/ports/psoc6/board_only_hw/single/timer.py +++ b/tests/ports/psoc6/board_only_hw/single/timer.py @@ -1,3 +1,4 @@ +import os from machine import Timer import time @@ -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)