Skip to content

Commit 02e56c2

Browse files
authored
Merge pull request #16132 from miri64/dist/fix/riotctrl_shell-spawnmock-method-missing
riotctrl_shell.tests: add missing method to MockSpawn
2 parents e4aabc7 + 70aac82 commit 02e56c2

File tree

1 file changed

+4
-0
lines changed
  • dist/pythonlibs/riotctrl_shell/tests

1 file changed

+4
-0
lines changed

dist/pythonlibs/riotctrl_shell/tests/common.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ def __init__(self, ctrl, *args, **kwargs):
1515
self.before = None
1616
self.echo = False
1717

18+
def read_nonblocking(self, size=1, timeout=-1):
19+
# do nothing, only used to flush pexpect output
20+
pass
21+
1822
def sendline(self, line, *args, **kwargs):
1923
self.last_command = line
2024
if self.ctrl.output is None:

0 commit comments

Comments
 (0)