1
0
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:
Martine Lenders 2021-03-03 11:51:22 +01:00 committed by GitHub
commit 02e56c2614
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: