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:
parent
a0714298a3
commit
94da3ed9a7
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user