소스 검색

fix coverage

Darien Raymond 9 년 전
부모
커밋
4d51990c66
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      testing/scenarios/server_env_coverage.go

+ 1 - 0
testing/scenarios/server_env_coverage.go

@@ -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