mirror of
https://github.com/espressif/openthread.git
synced 2026-08-01 16:47:47 +00:00
spinel-cli: Add timestamp to ping. (#658)
Now calculates real round-trip times for ping6 reply:
12 bytes from fdde:ad00:beef::3388:cc1e:5e44:6150: icmp_seq=0 hlim=63 time=891ms
Increased pexpect timeout for ncp-sim to 4 sec to handle ping responses >2 sec.
Makes Cert_5_3_10_AddressQuery pass reliably, even on low memory Travis VMs.
Added initial stub for commissioner command.
Add env variable control of ncp-sim DEBUG output.
This commit is contained in:
committed by
Jonathan Hui
parent
43330259f1
commit
ad0efaf72d
@@ -236,7 +236,6 @@ TESTS = \
|
||||
$(NULL)
|
||||
|
||||
XFAIL_NCP_TESTS = \
|
||||
thread-cert/Cert_5_3_10_AddressQuery.py \
|
||||
thread-cert/Cert_5_6_06_NetworkDataExpiration.py \
|
||||
thread-cert/Cert_5_6_08_ContextManagement.py \
|
||||
thread-cert/Cert_9_2_13_EnergyScan.py \
|
||||
|
||||
@@ -38,7 +38,7 @@ ROUTER2 = 3
|
||||
ROUTER3 = 4
|
||||
SED2 = 5
|
||||
|
||||
class Cert_5_3_9_AddressQuery(unittest.TestCase):
|
||||
class Cert_5_3_10_AddressQuery(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.nodes = {}
|
||||
for i in range(1,6):
|
||||
|
||||
@@ -86,9 +86,10 @@ class Node:
|
||||
cmd += ' %d' % nodeid
|
||||
print ("%s" % cmd)
|
||||
|
||||
self.pexpect = pexpect.spawn(cmd, timeout=2)
|
||||
self.pexpect = pexpect.spawn(cmd, timeout=4)
|
||||
time.sleep(0.1)
|
||||
self.pexpect.expect('spinel-cli >')
|
||||
self.debug(int(os.getenv('DEBUG', '0')))
|
||||
|
||||
def __init_soc(self, nodeid):
|
||||
""" Initialize a System-on-a-chip node connected via UART. """
|
||||
|
||||
Reference in New Issue
Block a user