mirror of
https://github.com/espressif/openthread.git
synced 2026-08-02 17:17:45 +00:00
[thci] allow for sufficient time after a ping from OTBR (#7158)
Some certification tests are failing because not enough delay is applied after a Linux ping command is sent and the capture misses the ICMP transaction. Also removing unneeded check for Thread 1.2 harness version when reconnecting to the serial port after a reset.
This commit is contained in:
@@ -1369,7 +1369,7 @@ class OpenThreadTHCI(object):
|
||||
|
||||
while time.time() < start_time + timeout:
|
||||
time.sleep(0.3)
|
||||
if TESTHARNESS_VERSION == TESTHARNESS_1_2 and not self.IsBorderRouter:
|
||||
if not self.IsBorderRouter:
|
||||
self._disconnect()
|
||||
self._connect()
|
||||
try:
|
||||
@@ -1493,7 +1493,7 @@ class OpenThreadTHCI(object):
|
||||
start_time = time.time()
|
||||
while time.time() < start_time + timeout:
|
||||
time.sleep(0.3)
|
||||
if TESTHARNESS_VERSION == TESTHARNESS_1_2 and not self.IsBorderRouter:
|
||||
if not self.IsBorderRouter:
|
||||
self._disconnect()
|
||||
self._connect()
|
||||
try:
|
||||
|
||||
@@ -423,7 +423,7 @@ class OpenThread_BR(OpenThreadTHCI, IThci):
|
||||
)
|
||||
|
||||
self.bash(cmd)
|
||||
time.sleep(1)
|
||||
time.sleep(timeout)
|
||||
|
||||
def multicast_Ping(self, destination, length=20):
|
||||
"""send ICMPv6 echo request with a given length to a multicast destination
|
||||
|
||||
Reference in New Issue
Block a user