[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:
Yakun Xu
2021-01-08 08:32:07 -08:00
committed by GitHub
parent 1e80b604b0
commit d9acce1177
56 changed files with 609 additions and 715 deletions
+2 -2
View File
@@ -32,9 +32,9 @@ source "tests/scripts/expect/_common.exp"
spawn_node 1
send "extaddr 99aabbccddeeff00\n"
expect "Done"
expect_line "Done"
send "extaddr 99AABBCCDDEEFF00\n"
expect "Done"
expect_line "Done"
send "extaddr\n"
expect "99aabbccddeeff00"
send "extaddr 1\n"