mirror of
https://github.com/espressif/openthread.git
synced 2026-08-21 18:09:52 +00:00
[expect] split and extend tests for discovery (#8832)
Signed-off-by: Lukasz Duda <[email protected]>
This commit is contained in:
committed by
Jonathan Hui
parent
7ec184d68e
commit
1c190a4f6d
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user