tests: adapt to test_utils_interactive_sync_shell
This commit is contained in:
parent
9766c3e2f1
commit
e8be1f9856
@ -15,9 +15,6 @@ TIMEOUT = 30
|
|||||||
|
|
||||||
|
|
||||||
def testfunc(child):
|
def testfunc(child):
|
||||||
child.expect_exact("GPIO peripheral driver test")
|
|
||||||
child.expect_exact(">")
|
|
||||||
|
|
||||||
for pin in range(0, 8):
|
for pin in range(0, 8):
|
||||||
child.sendline("bench 0 {}".format(pin))
|
child.sendline("bench 0 {}".format(pin))
|
||||||
child.expect(r" *nop loop: +(\d+)us --- +(\d+\.\d+)us per call --- +(\d+) calls per sec")
|
child.expect(r" *nop loop: +(\d+)us --- +(\d+\.\d+)us per call --- +(\d+) calls per sec")
|
||||||
|
|||||||
@ -6,4 +6,9 @@ USEMODULE += ps
|
|||||||
USEMODULE += schedstatistics
|
USEMODULE += schedstatistics
|
||||||
USEMODULE += printf_float
|
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
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|||||||
@ -6,4 +6,8 @@ USEMODULE += shell
|
|||||||
# Disable shell echo and prompt to not have them in the way for testing
|
# Disable shell echo and prompt to not have them in the way for testing
|
||||||
CFLAGS += -DSHELL_NO_ECHO=1 -DSHELL_NO_PROMPT=1
|
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
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|||||||
@ -64,8 +64,6 @@ def testfunc(child):
|
|||||||
* getting some test output without other messages
|
* getting some test output without other messages
|
||||||
* sending empty lines
|
* sending empty lines
|
||||||
"""
|
"""
|
||||||
child.expect_exact("Running 'tests_tools' application")
|
|
||||||
|
|
||||||
_wait_shell_ready(child)
|
_wait_shell_ready(child)
|
||||||
|
|
||||||
# Verify there is no local and remote echo as it is disabled
|
# Verify there is no local and remote echo as it is disabled
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user