[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:
Zhanglong Xia
2025-02-05 11:03:29 -05:00
committed by GitHub
parent 62cac82ad8
commit 64e0811355
3 changed files with 66 additions and 33 deletions
+12
View File
@@ -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"