提交 9e868736 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

fix issue cased by expect file is empty line

上级 7a87bacb
......@@ -14,7 +14,7 @@ pid=0
[esac]
*/
checkStep1() || print(">> expect 1\n");
checkStep1() || print(">> - expect 1\n");
checkStep3() || print(">> expect 3\n");
function checkStep1(){}
......
......@@ -118,7 +118,7 @@ func ValidateStepResult(langType string, expectLines []string, actualLines []str
expect = expect[1:len(expect) - 1]
pass = stringUtils.MatchString(expect, log, langType)
} else {
pass = strings.Contains(expect, log)
pass = strings.Contains(log, expect)
}
if !pass {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册