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

display suite, case results and log on cui window

上级 a5c579d4
......@@ -61,14 +61,9 @@ func GetCheckpointsResult(assert string, date string, caseLine string) string {
content := utils.ReadFile(resultPath)
utils.PrintToCmd(utils.Cui, resultPath)
utils.PrintToCmd(utils.Cui, content)
utils.PrintToCmd(utils.Cui, caseLine+"(.*)")
myExp := regexp.MustCompile("(?m:^\\s" + caseLine + "\n([\\s\\S]*?)((^\\s(PASS|FAIL))|\\z))")
arr := myExp.FindStringSubmatch(content)
str := "111"
str := ""
if len(arr) > 1 {
str = arr[1]
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册