1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests: adapt to test_utils_interactive_sync_shell

This commit is contained in:
Francisco Molina 2020-03-16 11:55:05 +01:00
parent 9766c3e2f1
commit e8be1f9856
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8
4 changed files with 9 additions and 5 deletions

View File

@ -15,9 +15,6 @@ TIMEOUT = 30
def testfunc(child):
child.expect_exact("GPIO peripheral driver test")
child.expect_exact(">")
for pin in range(0, 8):
child.sendline("bench 0 {}".format(pin))
child.expect(r" *nop loop: +(\d+)us --- +(\d+\.\d+)us per call --- +(\d+) calls per sec")

View File

@ -6,4 +6,9 @@ USEMODULE += ps
USEMODULE += schedstatistics
USEMODULE += printf_float
# For this test we don't want to use the shell version of
# test_utils_interactive_sync, since we want to synchronize before
# the start of the shell
DISABLE_MODULE += test_utils_interactive_sync_shell
include $(RIOTBASE)/Makefile.include

View File

@ -6,4 +6,8 @@ USEMODULE += shell
# Disable shell echo and prompt to not have them in the way for testing
CFLAGS += -DSHELL_NO_ECHO=1 -DSHELL_NO_PROMPT=1
# No need for test_utils_interactive_sync in this test since the test
# synchronizes by itself through `shellping` command.
DISABLE_MODULE += test_utils_interactive_sync
include $(RIOTBASE)/Makefile.include

View File

@ -64,8 +64,6 @@ def testfunc(child):
* getting some test output without other messages
* sending empty lines
"""
child.expect_exact("Running 'tests_tools' application")
_wait_shell_ready(child)
# Verify there is no local and remote echo as it is disabled