1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-02-20 23:47:21 -05:00
This commit is contained in:
v2ray 2016-08-09 01:16:45 +02:00
parent 27f3401848
commit 0b2df7f658
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -24,7 +24,7 @@ func BuildV2Ray() error {
func RunV2Ray(configFile string) *exec.Cmd {
profile := "coversingle.out"
wd, err := os.Getwd()
if err != nil {
if err == nil {
profile = filepath.Join(wd, profile)
}
proc := exec.Command(binaryPath, "-config", configFile, "-test.run", "TestRunMainForCoverage", "-test.coverprofile", profile)