From 0b2df7f658df48d6d2f7c85199f9433fdba0090d Mon Sep 17 00:00:00 2001 From: v2ray Date: Tue, 9 Aug 2016 01:16:45 +0200 Subject: [PATCH] typo --- testing/scenarios/server_env_coverage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/scenarios/server_env_coverage.go b/testing/scenarios/server_env_coverage.go index 2c69d3dd..e923ce5a 100644 --- a/testing/scenarios/server_env_coverage.go +++ b/testing/scenarios/server_env_coverage.go @@ -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)