tests/shell: check for shell prompt
Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
This commit is contained in:
parent
32d7c9b6b8
commit
c1e3e613a5
@ -57,9 +57,12 @@ CMDS = (
|
|||||||
('reboot', ('test_shell.'))
|
('reboot', ('test_shell.'))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
PROMPT = '> '
|
||||||
|
|
||||||
BOARD = os.environ['BOARD']
|
BOARD = os.environ['BOARD']
|
||||||
|
|
||||||
def check_cmd(child, cmd, expected):
|
def check_cmd(child, cmd, expected):
|
||||||
|
child.expect(PROMPT)
|
||||||
child.sendline(cmd)
|
child.sendline(cmd)
|
||||||
for line in expected:
|
for line in expected:
|
||||||
child.expect_exact(line)
|
child.expect_exact(line)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user