1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00

fix coverage

This commit is contained in:
Darien Raymond 2016-11-18 00:31:59 +01:00
parent 7632618584
commit 4d51990c66
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -24,6 +24,7 @@ func RunV2Ray(configFile string) *exec.Cmd {
GenTestBinaryPath()
covDir := filepath.Join(os.Getenv("GOPATH"), "out", "v2ray", "cov")
os.MkdirAll(covDir, os.ModeDir)
profile := uuid.New().String() + ".out"
proc := exec.Command(testBinaryPath, "-config", configFile, "-test.run", "TestRunMainForCoverage", "-test.coverprofile", profile, "-test.outputdir", covDir)
proc.Stderr = os.Stderr