mirror of
https://github.com/espressif/openthread.git
synced 2026-09-03 07:40:10 +00:00
[test] enhance parsing addresses (#6045)
Expect sometimes matches the pattern before a line is fully printed to TTY. As a result, the address returned may not be accurate. This commit fixes this issue by matching line breaks.
This commit is contained in:
@@ -32,15 +32,15 @@ source "tests/scripts/expect/_common.exp"
|
||||
spawn_node 1
|
||||
|
||||
send "coex disable\n"
|
||||
expect "Done"
|
||||
expect_line "Done"
|
||||
send "coex\n"
|
||||
expect "Disabled"
|
||||
expect "Done"
|
||||
expect_line "Done"
|
||||
send "coex enable\n"
|
||||
expect "Done"
|
||||
expect_line "Done"
|
||||
send "coex\n"
|
||||
expect "Enabled"
|
||||
expect "Done"
|
||||
expect_line "Done"
|
||||
send "coex metrics\n"
|
||||
expect -re {Stopped: (true|false)}
|
||||
expect -re {Grant Glitch: \d+}
|
||||
@@ -63,7 +63,7 @@ expect -re { Grant Deactivated During Request: \d+}
|
||||
expect -re { Delayed Grant: \d+}
|
||||
expect -re { Average Request To Grant Time: \d+}
|
||||
expect -re { Grant None: \d+}
|
||||
expect "Done"
|
||||
expect_line "Done"
|
||||
send "coex something_invalid\n"
|
||||
expect "Error 7: InvalidArgs"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user