tests/shell: check for startup message
Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
This commit is contained in:
parent
393eadcfb9
commit
32d7c9b6b8
@ -65,6 +65,11 @@ def check_cmd(child, cmd, expected):
|
|||||||
child.expect_exact(line)
|
child.expect_exact(line)
|
||||||
|
|
||||||
|
|
||||||
|
def check_startup(child):
|
||||||
|
child.sendline(CONTROL_C)
|
||||||
|
child.expect_exact(PROMPT)
|
||||||
|
|
||||||
|
|
||||||
def check_and_get_bufsize(child):
|
def check_and_get_bufsize(child):
|
||||||
child.sendline('bufsize')
|
child.sendline('bufsize')
|
||||||
child.expect('([0-9]+)\r\n')
|
child.expect('([0-9]+)\r\n')
|
||||||
@ -78,6 +83,8 @@ def testfunc(child):
|
|||||||
if BOARD == 'native':
|
if BOARD == 'native':
|
||||||
child.crlf = '\n'
|
child.crlf = '\n'
|
||||||
|
|
||||||
|
check_startup(child)
|
||||||
|
|
||||||
bufsize = check_and_get_bufsize(child)
|
bufsize = check_and_get_bufsize(child)
|
||||||
|
|
||||||
# loop other defined commands and expected output
|
# loop other defined commands and expected output
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user