[posix] enable expect tests on macOS (#5384)

This commit enables expect tests on macOS, also includes the following
required changes:

* Fixed bound to interface issue on macOS.
* Added ability to configure scan period, because macOS environment on
  GitHub Actions is much slower.
This commit is contained in:
Yakun Xu
2021-02-02 21:50:18 -08:00
committed by GitHub
parent 4755eea1d1
commit ad91ac3b9c
9 changed files with 112 additions and 54 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ proc setup_node {node {mode "r"} {role "child"}} {
expect_line "Done"
send "joiner start $::JOINER_PSK\n"
expect_line "Done"
wait_for "" "Join success"
wait_for "" "Join success" "Join failed"
send "thread start\n"
expect_line "Done"
wait_for "state" $role