mirror of
https://github.com/espressif/openthread.git
synced 2026-08-22 10:29:52 +00:00
[diag] do not allow running diag send and diag repeat concurrently (#11184)
The current diag module allows users running the 'diag send' and 'diag repeat' concurrently. The command run later will change the settings of the command run earlier, which will cause unexpected test results. This commit does not allow running 'diag send' and 'diag repeat' concurrently.
This commit is contained in:
@@ -158,6 +158,18 @@ expect_line "Done"
|
||||
send "diag radio receive\n"
|
||||
expect_line "Done"
|
||||
|
||||
send "diag repeat 100 100\n"
|
||||
expect "Done"
|
||||
|
||||
send "diag send 1 10\n"
|
||||
expect "Error 13: InvalidState"
|
||||
|
||||
send "diag repeat stop\n"
|
||||
expect "Done"
|
||||
|
||||
send "diag send 1 10\n"
|
||||
expect "Done"
|
||||
|
||||
send_user "shortest frame test\n"
|
||||
send "diag frame 112233\n"
|
||||
expect "Done"
|
||||
|
||||
Reference in New Issue
Block a user