mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 18:13:49 +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.before = None
|
||||||
self.echo = False
|
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):
|
def sendline(self, line, *args, **kwargs):
|
||||||
self.last_command = line
|
self.last_command = line
|
||||||
if self.ctrl.output is None:
|
if self.ctrl.output is None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user