Skip to content

Commit

Permalink
fixup! use interactive_sync for shell test
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikVE committed Mar 4, 2020
1 parent 71673af commit 1cb8bd4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion tests/shell/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ USEMODULE += ps
RIOT_TERMINAL ?= socat

DISABLE_MODULE += auto_init
DISABLE_MODULE += test_utils_interactive_sync

# chronos is missing a getchar implementation
BOARD_BLACKLIST += chronos
Expand Down
2 changes: 2 additions & 0 deletions tests/shell/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <stdio.h>
#include <string.h>

#include "test_utils/interactive_sync.h"
#include "shell_commands.h"
#include "shell.h"

Expand Down Expand Up @@ -75,6 +76,7 @@ static const shell_command_t shell_commands[] = {

int main(void)
{
test_utils_interactive_sync();

printf("test_shell.\n");

Expand Down
4 changes: 1 addition & 3 deletions tests/shell/tests/01-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
('echo a string', '\"echo\"\"a\"\"string\"'),
('ps', EXPECTED_PS),
('help', EXPECTED_HELP),
('reboot', 'test_shell.'),
('end_test', '[TEST_END]'),
)

Expand All @@ -75,8 +74,7 @@ def check_cmd(child, cmd, expected):


def check_startup(child):
child.sendline(CONTROL_C)
child.expect_exact(PROMPT)
child.expect('test_shell.\r\n')


def check_and_get_bufsize(child):
Expand Down

0 comments on commit 1cb8bd4

Please sign in to comment.