提交 77ce6e09 编写于 作者: Z zhaoke

Merge branch 'main' of git.zcorp.cc:pangu/zentaoatf

...@@ -11,9 +11,8 @@ const ( ...@@ -11,9 +11,8 @@ const (
Ip = "127.0.0.1" Ip = "127.0.0.1"
Port = 8085 Port = 8085
LevelToScanScriptFile = 8 JobTimeoutTime = 60 * 30
JobTimeoutTime = 60 * 30 JobRetryTime = 3
JobRetryTime = 3
ConfigVersion = "3.0" ConfigVersion = "3.0"
ConfigDir = "conf" ConfigDir = "conf"
...@@ -32,6 +31,8 @@ const ( ...@@ -32,6 +31,8 @@ const (
ExpectResultPass = "pass" ExpectResultPass = "pass"
LevelToScanScriptFile = 8
PathInfo = "PATH_INFO" PathInfo = "PATH_INFO"
Get = "GET" Get = "GET"
PthSep = string(os.PathSeparator) PthSep = string(os.PathSeparator)
...@@ -50,4 +51,7 @@ var ( ...@@ -50,4 +51,7 @@ var (
JUnit.String(), TestNG.String(), PHPUnit.String(), PyTest.String(), Jest.String(), CppUnit.String(), GTest.String(), QTest.String(), JUnit.String(), TestNG.String(), PHPUnit.String(), PyTest.String(), Jest.String(), CppUnit.String(), GTest.String(), QTest.String(),
RobotFramework.String(), Cypress.String(), Playwright.String(), Puppeteer.String(), K6.String(), Zap.String(), RobotFramework.String(), Cypress.String(), Playwright.String(), Puppeteer.String(), K6.String(), Zap.String(),
} }
DirToIgnore = []string{"node_modules", ".webpack",
"bin", "logs", "xdoc", "log", "log-bak", "conf"}
) )
...@@ -117,12 +117,10 @@ func IsDisable(enable string) bool { ...@@ -117,12 +117,10 @@ func IsDisable(enable string) bool {
func IgnoreZtfFile(path string) bool { func IgnoreZtfFile(path string) bool {
path = filepath.Base(path) path = filepath.Base(path)
arr := []string{"bin", "logs", "xdoc", if strings.Index(path, ".") == 0 || stringUtils.FindInArr(path, commConsts.DirToIgnore) ||
"log", "log-bak", "conf"}
if strings.Index(path, ".") == 0 ||
stringUtils.FindInArr(path, arr) ||
(len(path) >= 4 && path[len(path)-4:] == ".exp") { (len(path) >= 4 && path[len(path)-4:] == ".exp") {
return true return true
} else { } else {
return false return false
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册