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
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
cls.ctrl = RIOTCtrl()
|
cls.ctrl = RIOTCtrl()
|
||||||
|
cls.ctrl.reset()
|
||||||
cls.ctrl.start_term()
|
cls.ctrl.start_term()
|
||||||
if cls.DEBUG:
|
if cls.DEBUG:
|
||||||
cls.ctrl.term.logfile = sys.stdout
|
cls.ctrl.term.logfile = sys.stdout
|
||||||
cls.ctrl.reset()
|
|
||||||
cls.shell = ShellInteraction(cls.ctrl)
|
cls.shell = ShellInteraction(cls.ctrl)
|
||||||
cls.json_parser = RapidJSONShellInteractionParser()
|
cls.json_parser = RapidJSONShellInteractionParser()
|
||||||
cls.json_parser.set_parser_args(
|
cls.json_parser.set_parser_args(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user