mirror of
https://github.com/espressif/openthread.git
synced 2026-09-01 23:09:53 +00:00
[expect] refactor common functions (#5634)
* unify node creating and destroying * simplify switching between nodes
This commit is contained in:
@@ -30,8 +30,9 @@
|
||||
source "tests/scripts/expect/_common.exp"
|
||||
source "tests/scripts/expect/_multinode.exp"
|
||||
|
||||
setup_nodes
|
||||
set spawn_id $spawn_1
|
||||
setup_two_nodes
|
||||
|
||||
switch_node 1
|
||||
|
||||
send "leaderdata\n"
|
||||
expect -re {Partition ID: \d+}
|
||||
@@ -154,4 +155,4 @@ expect "0:0:0:0::/64 s low"
|
||||
send "route remove ::/64\n"
|
||||
expect "Done"
|
||||
|
||||
dispose_nodes
|
||||
dispose_all
|
||||
|
||||
Reference in New Issue
Block a user