[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
@@ -41,7 +41,7 @@ send "ping ::1 1 2 0.12345 1\n"
expect_line "Done"
send "ping stop\n"
expect_line "Done"
send "ping ::1 1 2 1 1 1\n"
send "ping ::1 1 2 1 1 1 1\n"
expect "Error 7: InvalidArgs"
dispose_all