mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests/congure_*: wait for serial port after reset if configured
This commit is contained in:
parent
b00b286a1d
commit
64bea31b47
@ -8,6 +8,7 @@
|
||||
|
||||
import logging
|
||||
import sys
|
||||
import time
|
||||
import unittest
|
||||
|
||||
from riotctrl.ctrl import RIOTCtrl
|
||||
@ -15,6 +16,8 @@ from riotctrl.shell.json import RapidJSONShellInteractionParser, rapidjson
|
||||
|
||||
from riotctrl_shell.congure_test import CongureTest
|
||||
|
||||
from testrunner.spawn import MAKE_TERM_CONNECT_DELAY
|
||||
|
||||
|
||||
class TestCongUREBase(unittest.TestCase):
|
||||
# pylint: disable=too-many-public-methods
|
||||
@ -25,6 +28,7 @@ class TestCongUREBase(unittest.TestCase):
|
||||
def setUpClass(cls):
|
||||
cls.ctrl = RIOTCtrl()
|
||||
cls.ctrl.reset()
|
||||
time.sleep(MAKE_TERM_CONNECT_DELAY)
|
||||
cls.ctrl.start_term()
|
||||
if cls.DEBUG:
|
||||
cls.ctrl.term.logfile = sys.stdout
|
||||
|
@ -8,6 +8,7 @@
|
||||
|
||||
import logging
|
||||
import sys
|
||||
import time
|
||||
import unittest
|
||||
|
||||
from riotctrl.ctrl import RIOTCtrl
|
||||
@ -15,6 +16,8 @@ from riotctrl.shell.json import RapidJSONShellInteractionParser, rapidjson
|
||||
|
||||
from riotctrl_shell.congure_test import CongureTest
|
||||
|
||||
from testrunner.spawn import MAKE_TERM_CONNECT_DELAY
|
||||
|
||||
|
||||
class TestCongUREBase(unittest.TestCase):
|
||||
DEBUG = False
|
||||
@ -25,6 +28,7 @@ class TestCongUREBase(unittest.TestCase):
|
||||
def setUpClass(cls):
|
||||
cls.ctrl = RIOTCtrl()
|
||||
cls.ctrl.reset()
|
||||
time.sleep(MAKE_TERM_CONNECT_DELAY)
|
||||
cls.ctrl.start_term()
|
||||
if cls.DEBUG:
|
||||
cls.ctrl.term.logfile = sys.stdout
|
||||
|
@ -8,6 +8,7 @@
|
||||
|
||||
import logging
|
||||
import sys
|
||||
import time
|
||||
import unittest
|
||||
|
||||
from riotctrl.ctrl import RIOTCtrl
|
||||
@ -15,6 +16,8 @@ from riotctrl.shell.json import RapidJSONShellInteractionParser, rapidjson
|
||||
|
||||
from riotctrl_shell.congure_test import CongureTest
|
||||
|
||||
from testrunner.spawn import MAKE_TERM_CONNECT_DELAY
|
||||
|
||||
|
||||
class TestCongUREBase(unittest.TestCase):
|
||||
# pylint: disable=too-many-public-methods
|
||||
@ -25,6 +28,7 @@ class TestCongUREBase(unittest.TestCase):
|
||||
def setUpClass(cls):
|
||||
cls.ctrl = RIOTCtrl()
|
||||
cls.ctrl.reset()
|
||||
time.sleep(MAKE_TERM_CONNECT_DELAY)
|
||||
cls.ctrl.start_term()
|
||||
if cls.DEBUG:
|
||||
cls.ctrl.term.logfile = sys.stdout
|
||||
|
@ -9,6 +9,7 @@
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
import unittest
|
||||
|
||||
from riotctrl.ctrl import RIOTCtrl
|
||||
@ -17,6 +18,8 @@ from riotctrl.shell.json import RapidJSONShellInteractionParser, rapidjson
|
||||
|
||||
from riotctrl_shell.congure_test import CongureTest
|
||||
|
||||
from testrunner.spawn import MAKE_TERM_CONNECT_DELAY
|
||||
|
||||
|
||||
class TestCongUREBase(unittest.TestCase):
|
||||
DEBUG = False
|
||||
@ -25,6 +28,7 @@ class TestCongUREBase(unittest.TestCase):
|
||||
def setUpClass(cls):
|
||||
cls.ctrl = RIOTCtrl()
|
||||
cls.ctrl.reset()
|
||||
time.sleep(MAKE_TERM_CONNECT_DELAY)
|
||||
cls.ctrl.start_term()
|
||||
if cls.DEBUG:
|
||||
cls.ctrl.term.logfile = sys.stdout
|
||||
|
Loading…
Reference in New Issue
Block a user