1
0
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:
Martine Lenders 2023-01-11 12:55:29 +01:00
parent b00b286a1d
commit 64bea31b47
No known key found for this signature in database
GPG Key ID: 2134D77A5336DD80
4 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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