Skip to content

Commit d8b2156

Browse files
miri64kaspar030
authored andcommitted
tests/congure_*: wait for serial port after reset if configured
(cherry picked from commit 64bea31)
1 parent df233b0 commit d8b2156

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

tests/congure_abe/tests/01-run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@
88

99
import logging
1010
import sys
11+
import time
1112
import unittest
1213

1314
from riotctrl.ctrl import RIOTCtrl
1415
from riotctrl.shell.json import RapidJSONShellInteractionParser, rapidjson
1516

1617
from riotctrl_shell.congure_test import CongureTest
1718

19+
from testrunner.spawn import MAKE_TERM_CONNECT_DELAY
20+
1821

1922
class TestCongUREBase(unittest.TestCase):
2023
# pylint: disable=too-many-public-methods
@@ -25,6 +28,7 @@ class TestCongUREBase(unittest.TestCase):
2528
def setUpClass(cls):
2629
cls.ctrl = RIOTCtrl()
2730
cls.ctrl.reset()
31+
time.sleep(MAKE_TERM_CONNECT_DELAY)
2832
cls.ctrl.start_term()
2933
if cls.DEBUG:
3034
cls.ctrl.term.logfile = sys.stdout

tests/congure_quic/tests/01-run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@
88

99
import logging
1010
import sys
11+
import time
1112
import unittest
1213

1314
from riotctrl.ctrl import RIOTCtrl
1415
from riotctrl.shell.json import RapidJSONShellInteractionParser, rapidjson
1516

1617
from riotctrl_shell.congure_test import CongureTest
1718

19+
from testrunner.spawn import MAKE_TERM_CONNECT_DELAY
20+
1821

1922
class TestCongUREBase(unittest.TestCase):
2023
DEBUG = False
@@ -25,6 +28,7 @@ class TestCongUREBase(unittest.TestCase):
2528
def setUpClass(cls):
2629
cls.ctrl = RIOTCtrl()
2730
cls.ctrl.reset()
31+
time.sleep(MAKE_TERM_CONNECT_DELAY)
2832
cls.ctrl.start_term()
2933
if cls.DEBUG:
3034
cls.ctrl.term.logfile = sys.stdout

tests/congure_reno/tests/01-run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@
88

99
import logging
1010
import sys
11+
import time
1112
import unittest
1213

1314
from riotctrl.ctrl import RIOTCtrl
1415
from riotctrl.shell.json import RapidJSONShellInteractionParser, rapidjson
1516

1617
from riotctrl_shell.congure_test import CongureTest
1718

19+
from testrunner.spawn import MAKE_TERM_CONNECT_DELAY
20+
1821

1922
class TestCongUREBase(unittest.TestCase):
2023
# pylint: disable=too-many-public-methods
@@ -25,6 +28,7 @@ class TestCongUREBase(unittest.TestCase):
2528
def setUpClass(cls):
2629
cls.ctrl = RIOTCtrl()
2730
cls.ctrl.reset()
31+
time.sleep(MAKE_TERM_CONNECT_DELAY)
2832
cls.ctrl.start_term()
2933
if cls.DEBUG:
3034
cls.ctrl.term.logfile = sys.stdout

tests/congure_test/tests/01-run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import logging
1010
import os
1111
import sys
12+
import time
1213
import unittest
1314

1415
from riotctrl.ctrl import RIOTCtrl
@@ -17,6 +18,8 @@
1718

1819
from riotctrl_shell.congure_test import CongureTest
1920

21+
from testrunner.spawn import MAKE_TERM_CONNECT_DELAY
22+
2023

2124
class TestCongUREBase(unittest.TestCase):
2225
DEBUG = False
@@ -25,6 +28,7 @@ class TestCongUREBase(unittest.TestCase):
2528
def setUpClass(cls):
2629
cls.ctrl = RIOTCtrl()
2730
cls.ctrl.reset()
31+
time.sleep(MAKE_TERM_CONNECT_DELAY)
2832
cls.ctrl.start_term()
2933
if cls.DEBUG:
3034
cls.ctrl.term.logfile = sys.stdout

0 commit comments

Comments
 (0)