mirror of
https://github.com/espressif/openthread.git
synced 2026-09-13 04:30:08 +00:00
[github-actions] fix expects fail by chance (#5157)
This commit tries to reduce expects fails in GitHub actions: - wait_for only sends command when it's not empty - increases the default expect timeout from 1s to 3s.
This commit is contained in:
@@ -30,7 +30,10 @@
|
||||
proc wait_for {command expected} {
|
||||
set result 0
|
||||
for {set i 0} {$i < 20} {incr i} {
|
||||
send "$command\n"
|
||||
if {$command != ""} {
|
||||
send "$command\n"
|
||||
}
|
||||
|
||||
expect {
|
||||
-re $expected {
|
||||
set result 1
|
||||
|
||||
Reference in New Issue
Block a user