Skip to content

Commit

Permalink
[tests] properly configure operational dataset (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhui authored Jun 23, 2023
1 parent 66479c6 commit acb3371
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions tests/integration/test_native_commissioner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,17 @@ start_leader() {
spawn ${NON_CCM_CLI} 9
send "factoryreset\r\n"
sleep 1
send "panid 0xface\r\n"
send "dataset init new\r\n"
expect "Done"
send "ifconfig up\r\n"
send "dataset channel 11\r\n"
expect "Done"
send "dataset panid 0xface\r\n"
expect "Done"
send "pskc ${PSKC}\r\n"
send "dataset pskc ${PSKC}\r\n"
expect "Done"
send "dataset commit active\r\n"
expect "Done"
send "ifconfig up\r\n"
expect "Done"
send "thread start\r\n"
expect "Done"
Expand Down Expand Up @@ -74,8 +80,9 @@ test_native_commissioner() {
# Thread of the daemon node is disabled so that the daemon transmits un-secure
# 15.4 frames to the Border Agent node on behalf of the commissioner.
start_daemon
ot_ctl ifconfig up
ot_ctl channel 11
ot_ctl panid 0xface
ot_ctl ifconfig up

start_commissioner "${NON_CCM_CONFIG}"

Expand Down

0 comments on commit acb3371

Please sign in to comment.