From 70aac82e6b5ffc315039b41bfaf079a7717253ac Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Wed, 3 Mar 2021 10:40:06 +0100 Subject: [PATCH] riotctrl_shell.tests: add missing method to MockSpawn --- dist/pythonlibs/riotctrl_shell/tests/common.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dist/pythonlibs/riotctrl_shell/tests/common.py b/dist/pythonlibs/riotctrl_shell/tests/common.py index 06538533e6..348c90c5b1 100644 --- a/dist/pythonlibs/riotctrl_shell/tests/common.py +++ b/dist/pythonlibs/riotctrl_shell/tests/common.py @@ -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: