From 163fcf4655a0c6c29e8f7420c8711b9bc336a11d Mon Sep 17 00:00:00 2001 From: husharp Date: Fri, 22 Mar 2024 12:18:35 +0800 Subject: [PATCH] support ut ctl Signed-off-by: husharp --- tools/pd-ut/ut.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/pd-ut/ut.go b/tools/pd-ut/ut.go index 52b053123b10..5bd7e8641142 100644 --- a/tools/pd-ut/ut.go +++ b/tools/pd-ut/ut.go @@ -27,6 +27,7 @@ import ( "path" "regexp" "runtime" + "strconv" "strings" "sync" "time" @@ -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