1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

riotctrl_shell.tests: add missing method to MockSpawn

This commit is contained in:
Martine Lenders 2021-03-03 10:40:06 +01:00
parent 12801cb3c1
commit 70aac82e6b
No known key found for this signature in database
GPG Key ID: CCD317364F63286F

View File

@ -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: