[expect] refactor common functions (#5634)

* unify node creating and destroying
* simplify switching between nodes
This commit is contained in:
Yakun Xu
2020-10-12 08:21:48 -07:00
committed by GitHub
parent c8ba04702c
commit 9e3b450218
42 changed files with 196 additions and 201 deletions
+2 -2
View File
@@ -29,7 +29,7 @@
source "tests/scripts/expect/_common.exp"
set spawn_id [spawn_node 1]
spawn_node 1
send "ifconfig up\n"
expect "Done"
@@ -65,4 +65,4 @@ send "panid\n"
expect "0xffff"
expect "Done"
dispose
dispose_all