mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 07:26:24 -05:00
fix coverage test
This commit is contained in:
parent
07ca87990d
commit
95be224caf
@ -26,7 +26,8 @@ func RunV2RayProtobuf(config []byte) *exec.Cmd {
|
|||||||
|
|
||||||
covDir := filepath.Join(os.Getenv("GOPATH"), "out", "v2ray", "cov")
|
covDir := filepath.Join(os.Getenv("GOPATH"), "out", "v2ray", "cov")
|
||||||
os.MkdirAll(covDir, os.ModeDir)
|
os.MkdirAll(covDir, os.ModeDir)
|
||||||
profile := uuid.New().String() + ".out"
|
randomID := uuid.New()
|
||||||
|
profile := randomID.String() + ".out"
|
||||||
proc := exec.Command(testBinaryPath, "-config=stdin:", "-format=pb", "-test.run", "TestRunMainForCoverage", "-test.coverprofile", profile, "-test.outputdir", covDir)
|
proc := exec.Command(testBinaryPath, "-config=stdin:", "-format=pb", "-test.run", "TestRunMainForCoverage", "-test.coverprofile", profile, "-test.outputdir", covDir)
|
||||||
proc.Stdin = bytes.NewBuffer(config)
|
proc.Stdin = bytes.NewBuffer(config)
|
||||||
proc.Stderr = os.Stderr
|
proc.Stderr = os.Stderr
|
||||||
|
Loading…
Reference in New Issue
Block a user