mirror of
https://github.com/espressif/openthread.git
synced 2026-09-10 11:10:08 +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 "netdata help\n"
|
||||
expect "Done"
|
||||
@@ -45,4 +46,4 @@ expect "Done"
|
||||
send "netdata show -x\n"
|
||||
expect "Done"
|
||||
|
||||
dispose_nodes
|
||||
dispose_all
|
||||
|
||||
Reference in New Issue
Block a user