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

fix unit test issues

上级 212e8c09
VERSION=3.0.0 VERSION=3.0.0_beta1
PROJECT=ztf PROJECT=ztf
QINIU_DIR=/Users/aaron/work/zentao/qiniu/ QINIU_DIR=/Users/aaron/work/zentao/qiniu/
QINIU_DIST_DIR=${QINIU_DIR}${PROJECT}/${VERSION}/ QINIU_DIST_DIR=${QINIU_DIR}${PROJECT}/${VERSION}/
......
...@@ -230,6 +230,8 @@ func runUnitTest(args []string) { ...@@ -230,6 +230,8 @@ func runUnitTest(args []string) {
} else if args[start] == commConsts.UnitTestToolRobot { } else if args[start] == commConsts.UnitTestToolRobot {
commConsts.UnitTestTool = commConsts.RobotFramework commConsts.UnitTestTool = commConsts.RobotFramework
commConsts.UnitBuildTool = commConsts.Maven commConsts.UnitBuildTool = commConsts.Maven
} else {
commConsts.UnitTestTool = commConsts.TestTool(args[start])
} }
cmd := strings.Join(args[start:], " ") cmd := strings.Join(args[start:], " ")
......
...@@ -194,7 +194,7 @@ func RetrieveUnitResult(workspacePath string, startTime int64, testTool commCons ...@@ -194,7 +194,7 @@ func RetrieveUnitResult(workspacePath string, startTime int64, testTool commCons
resultDir = "results" resultDir = "results"
zipDir = resultDir zipDir = resultDir
} else { } else {
resultDir = "results" resultDir = ""
zipDir = resultDir zipDir = resultDir
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册