Skip to content

Commit f36a384

Browse files
committed
examples/basic/subfolders: fix test
At least on the samr21-xpro used for hardware in the loop testing, the terminal did not attach in time after the reset to capture all of the output. This adds the `test_utils_interactive_sync` module to wait for an `s` to be received via `stdio` before starting to print to sync with the test scripting.
1 parent 1bacf70 commit f36a384

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/basic/subfolders/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ RIOTBASE ?= $(CURDIR)/../../..
1111
EXTERNAL_MODULE_DIRS += $(CURDIR)/external_modules/
1212
USEMODULE += module # module name must match folder name
1313

14+
# This is used for the test integration: The app will wait for "s" being sent
15+
# before starting with the output, so that the test does not fail because it
16+
# already finished printing when the terminal attaches.
17+
USEMODULE += test_utils_interactive_sync
18+
1419
# Add source files in subfolders manually
1520
SRC += main.c
1621
SRC += folder/a.c folder/subfolder/b.c folder/subfolder/c.c

0 commit comments

Comments
 (0)