[test] fix reporting expect failure (#6869)

This commit fixes reporting expect failures by adding fail on error
flag to the ot_exec_expect_script function in script/test script.

This commit also fixes failing expect tests and removes expect tests
on macOS for unstable issues.
This commit is contained in:
Yakun Xu
2021-08-02 20:26:32 -07:00
committed by GitHub
parent 974026b5f3
commit 354387c931
22 changed files with 83 additions and 102 deletions
+1 -1
View File
@@ -32,9 +32,9 @@ source "tests/scripts/expect/_common.exp"
spawn_node 1
send "counters\n"
expect "ip"
expect "mac"
expect "mle"
expect "ip"
expect_line "Done"
send "counters mac\n"
expect_line "Done"