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

test and fix on win7

上级 014899c2
......@@ -24,7 +24,6 @@ func ExeScripts(files []string, scriptDir string, langType string, report *model
report.EndTime = startTime
report.Duration = secs
}
func ExeScript(file string, langType string, scriptDir string) {
......
......@@ -2,26 +2,11 @@ package main
import (
"fmt"
"regexp"
"path"
)
func main() {
text := ` df
FAIL scripts/tc-200.py
Step1: FAIL @step2010 第4次尝试登录
Checkpoint1: FAIL
Expect Result CODE: @step2010期望结果, 可以有多行
Actual Result N/A
a := path.Base("ss/1.txt")
Step2: FAIL @step2104 再输入1次正确的密码
Checkpoint1: FAIL
Expect Result CODE: @step2104期望结果, 可以有多行
Actual Result N/A
dd`
myExp := regexp.MustCompile("(?m:^\\s(?:PASS|FAIL) scripts/tc-200.py\n([\\s\\S]*?)((^\\s(PASS|FAIL))|\\z))")
arr := myExp.FindStringSubmatch(text)
fmt.Println(arr[1])
fmt.Println(a)
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册