Skip to content

Commit

Permalink
move
Browse files Browse the repository at this point in the history
Signed-off-by: husharp <[email protected]>
  • Loading branch information
HuSharp committed Jul 19, 2024
1 parent 95c0200 commit 9e61091
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/pd-ut/ut.go
Original file line number Diff line number Diff line change
Expand Up @@ -673,14 +673,14 @@ func failureCases(input []JUnitTestCase) int {

func (*numa) testCommand(pkg string, fn string) *exec.Cmd {
args := make([]string, 0, 10)
// let the test run in the verbose mode.
args = append(args, "-test.v")
exe := "./" + testFileName(pkg)
if coverProfile != "" {
fileName := strings.ReplaceAll(pkg, "/", "_") + "." + fn
tmpFile := path.Join(coverFileTempDir, fileName)
args = append(args, "-test.coverprofile", tmpFile)
}
// let the test run in the verbose mode.
args = append(args, "-test.v")
if strings.Contains(fn, "Suite") {
args = append(args, "-test.cpu", fmt.Sprint(parallel/2))
} else {
Expand Down

0 comments on commit 9e61091

Please sign in to comment.