Skip to content

Commit acb3371

Browse files
authored
[tests] properly configure operational dataset (#238)
1 parent 66479c6 commit acb3371

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

tests/integration/test_native_commissioner.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,17 @@ start_leader() {
3636
spawn ${NON_CCM_CLI} 9
3737
send "factoryreset\r\n"
3838
sleep 1
39-
send "panid 0xface\r\n"
39+
send "dataset init new\r\n"
4040
expect "Done"
41-
send "ifconfig up\r\n"
41+
send "dataset channel 11\r\n"
42+
expect "Done"
43+
send "dataset panid 0xface\r\n"
4244
expect "Done"
43-
send "pskc ${PSKC}\r\n"
45+
send "dataset pskc ${PSKC}\r\n"
46+
expect "Done"
47+
send "dataset commit active\r\n"
48+
expect "Done"
49+
send "ifconfig up\r\n"
4450
expect "Done"
4551
send "thread start\r\n"
4652
expect "Done"
@@ -74,8 +80,9 @@ test_native_commissioner() {
7480
# Thread of the daemon node is disabled so that the daemon transmits un-secure
7581
# 15.4 frames to the Border Agent node on behalf of the commissioner.
7682
start_daemon
77-
ot_ctl ifconfig up
83+
ot_ctl channel 11
7884
ot_ctl panid 0xface
85+
ot_ctl ifconfig up
7986

8087
start_commissioner "${NON_CCM_CONFIG}"
8188

0 commit comments

Comments
 (0)