[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:
Eduardo Montoya
2021-11-12 13:31:58 -08:00
committed by GitHub
parent 04a3ebff22
commit b4c76b3e17
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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:
+1 -1
View File
@@ -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