Skip to content

Commit f5ff4b3

Browse files
committed
tests: benchmarks: multicore: idle_spim_loopback: Add boot delay
Pytest requires the first captured state to be low power state. Due to internal test framework delays, Pytest collects last ~27 ms of the idle state. Then MCU wakes up. As a result some Idle tests started to randomly fail. Add arbitrary delay at the beginning of main so the first wake up happens later. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 9563aca commit f5ff4b3

File tree

1 file changed

+3
-0
lines changed
  • tests/benchmarks/multicore/idle_spim_loopback/src

1 file changed

+3
-0
lines changed

tests/benchmarks/multicore/idle_spim_loopback/src/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ int main(void)
166166
#endif
167167
LOG_INF("===================================================================");
168168

169+
/* Arbitrary sleep to fix CI synchronization. */
170+
k_msleep(100);
171+
169172
ret = spi_is_ready_dt(&spim_spec);
170173
if (!ret) {
171174
LOG_ERR("Error: SPI device is not ready");

0 commit comments

Comments
 (0)