mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:52:44 +01:00
Merge pull request #16132 from miri64/dist/fix/riotctrl_shell-spawnmock-method-missing
riotctrl_shell.tests: add missing method to MockSpawn
This commit is contained in:
commit
02e56c2614
@ -15,6 +15,10 @@ class MockSpawn():
|
||||
self.before = None
|
||||
self.echo = False
|
||||
|
||||
def read_nonblocking(self, size=1, timeout=-1):
|
||||
# do nothing, only used to flush pexpect output
|
||||
pass
|
||||
|
||||
def sendline(self, line, *args, **kwargs):
|
||||
self.last_command = line
|
||||
if self.ctrl.output is None:
|
||||
|
Loading…
Reference in New Issue
Block a user