[expect] split and extend tests for discovery (#8832)

Signed-off-by: Lukasz Duda <[email protected]>
This commit is contained in:
Lukasz Duda
2023-03-30 15:02:39 -07:00
committed by Jonathan Hui
parent 7ec184d68e
commit 1c190a4f6d
9 changed files with 185 additions and 125 deletions
+4 -30
View File
@@ -44,14 +44,7 @@ set timeout 1
send "panid 0xface\n"
expect_line "Done"
send "ifconfig up\n"
expect_line "Done"
send "thread start\n"
expect_line "Done"
wait_for "state" "leader"
expect_line "Done"
attach
set extaddr1 [get_extaddr]
@@ -63,14 +56,8 @@ setup_default_network
send "panid 0xface\n"
expect_line "Done"
send "ifconfig up\n"
expect_line "Done"
attach "router"
send "thread start\n"
expect_line "Done"
wait_for "state" "router"
expect_line "Done"
sleep 3
get_rloc16
@@ -87,14 +74,8 @@ expect_line "Done"
send "macfilter addr denylist\n"
expect_line "Done"
send "ifconfig up\n"
expect_line "Done"
attach "router"
send "thread start\n"
expect_line "Done"
wait_for "state" "router"
expect_line "Done"
sleep 4
set extaddr3 [get_extaddr]
@@ -116,14 +97,7 @@ expect_line "Done"
send "macfilter addr allowlist\n"
expect_line "Done"
send "ifconfig up\n"
expect_line "Done"
send "thread start\n"
expect_line "Done"
wait_for "state" "child"
expect_line "Done"
attach "child"
get_rloc16