mirror of
https://github.com/espressif/openthread.git
synced 2026-10-18 05:28:10 +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
|
||||
|
||||
@@ -131,7 +130,7 @@ class Cert_5_2_5_AddressQuery(unittest.TestCase):
|
||||
addrs = self.nodes[REED].get_addrs()
|
||||
for addr in addrs:
|
||||
if addr[0:4] != 'fe80':
|
||||
self.nodes[ED2].ping(addr)
|
||||
self.assertTrue(self.nodes[ED2].ping(addr))
|
||||
time.sleep(1)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user