mirror of
https://github.com/espressif/openthread.git
synced 2026-10-21 15:08:19 +00:00
Refactor Python Node ping function (#643)
* Refactor ping command to remove pexpect dependency on each cert test
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
|
||||
import pexpect
|
||||
import time
|
||||
import unittest
|
||||
|
||||
@@ -125,13 +124,13 @@ class Cert_5_3_4_AddressMapCache(unittest.TestCase):
|
||||
addrs = self.nodes[i].get_addrs()
|
||||
for addr in addrs:
|
||||
if addr[0:4] != 'fe80':
|
||||
self.nodes[SED1].ping(addr)
|
||||
self.assertTrue(self.nodes[SED1].ping(addr))
|
||||
|
||||
for i in range(4, 8):
|
||||
addrs = self.nodes[i].get_addrs()
|
||||
for addr in addrs:
|
||||
if addr[0:4] != 'fe80':
|
||||
self.nodes[SED1].ping(addr)
|
||||
self.assertTrue(self.nodes[SED1].ping(addr))
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user