From b00b286a1d9faec0ef15c08b87664bc94aa8c239 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Wed, 11 Jan 2023 12:54:54 +0100 Subject: [PATCH] boards: common: stdio_cdc_acm: let tests wait a bit for serial port --- boards/common/makefiles/stdio_cdc_acm.dep.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/boards/common/makefiles/stdio_cdc_acm.dep.mk b/boards/common/makefiles/stdio_cdc_acm.dep.mk index cbd3047533..140bf7114a 100644 --- a/boards/common/makefiles/stdio_cdc_acm.dep.mk +++ b/boards/common/makefiles/stdio_cdc_acm.dep.mk @@ -8,4 +8,9 @@ ifeq (,$(filter-out stdio_cdc_acm,$(filter stdio_% slipdev_stdio,$(USEMODULE)))) USEMODULE += stdio_cdc_acm endif FEATURES_REQUIRED += highlevel_stdio + + # Enforce tests to wait a bit for the serial port after reset + TERM_DELAY ?= 2 + TESTRUNNER_CONNECT_DELAY ?= $(TERM_DELAY) + $(call target-export-variables,test,TESTRUNNER_CONNECT_DELAY) endif