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

tests/congure: reset before opening terminal

Some BOARD terminals are slow to start so if the BOARD is reset after
opening the terminal this can lead to off-by-one error when parsing
the output.

So instead do as testrunner and reset before opening the terminal.
Note that no interactive_sync is needed since a similar mechanism
happens in ShellInteraction.
This commit is contained in:
Francisco Molina 2021-06-17 11:03:42 +02:00
parent a0714298a3
commit 94da3ed9a7
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8

View File

@ -24,10 +24,10 @@ class TestCongUREBase(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.ctrl = RIOTCtrl()
cls.ctrl.reset()
cls.ctrl.start_term()
if cls.DEBUG:
cls.ctrl.term.logfile = sys.stdout
cls.ctrl.reset()
cls.shell = ShellInteraction(cls.ctrl)
cls.json_parser = RapidJSONShellInteractionParser()
cls.json_parser.set_parser_args(