Skip to content

Commit

Permalink
support ut ctl
Browse files Browse the repository at this point in the history
Signed-off-by: husharp <jinhao.hu@pingcap.com>
  • Loading branch information
HuSharp committed Mar 22, 2024
1 parent 532b15b commit 163fcf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/pd-ut/ut.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"path"
"regexp"
"runtime"
"strconv"
"strings"
"sync"
"time"
Expand Down Expand Up @@ -597,7 +598,7 @@ func buildTestBinaryMulti(pkgs []string) error {
packages = append(packages, path.Join(modulePath, pkg))
}

cmd := exec.Command("go", "test", "--exec", xprogPath, "-vet", "off", "--tags=tso_function_test,deadlock")
cmd := exec.Command("go", "test", "-p", strconv.Itoa(buildParallel), "--exec", xprogPath, "-vet", "off", "--tags=tso_function_test,deadlock")
cmd.Args = append(cmd.Args, packages...)
cmd.Dir = workDir
cmd.Stdout = os.Stdout
Expand Down

0 comments on commit 163fcf4

Please sign in to comment.