提交 c1b2d2a6 编写于 作者: Z zhaoke

Fix unit test issue.

上级 e9ccd1ad
......@@ -20,7 +20,7 @@ const (
groupTag = "group:"
stepTag = "step:"
funcRegex = `(?U)\We\((.+)\)`
funcRegex = `r\((.*?)\)\s*&&\s*p\((.*?)\)\s*&&\s*e\((.*?)\);(.*)`
singleLineCommentsRegex = `.*(?://|#)(.+)$`
multiLineCommentsRegex = `/\*+(.+)\*+/`
)
......@@ -32,8 +32,6 @@ func Extract(scriptPaths []string) (done bool, err error) {
}
for _, pth := range scriptPaths {
// stepObjs := extractFromComments(pth)
// steps := prepareSteps(stepObjs)
os.Chmod(pth, 0777)
var steps []string
......
......@@ -10,7 +10,6 @@ import (
commConsts "github.com/easysoft/zentaoatf/internal/pkg/consts"
commonUtils "github.com/easysoft/zentaoatf/pkg/lib/common"
fileUtils "github.com/easysoft/zentaoatf/pkg/lib/file"
logUtils "github.com/easysoft/zentaoatf/pkg/lib/log"
"gopkg.in/natefinch/lumberjack.v2"
......@@ -59,7 +58,7 @@ func InitExecLog(workspacePath string) {
if commConsts.ExecFrom == commConsts.FromClient {
commConsts.ExecLogDir = logUtils.GetLogDir(workspacePath)
} else {
commConsts.ExecLogDir = logUtils.GetLogDir(fileUtils.GetZTFHome())
commConsts.ExecLogDir = logUtils.GetLogDir(workspacePath)
}
config := getLogConfig()
config.EncoderConfig.EncodeLevel = nil
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册