[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
@@ -44,7 +44,7 @@ expect "2"
expect_line "Done"
send "mac\n"
expect "Error 7: InvalidArgs"
expect "Error 35: InvalidCommand"
send "mac something_invalid\n"
expect "Error 35: InvalidCommand"
send "mac retries\n"