|
@@ -28,7 +28,7 @@ func RunV2RayProtobuf(config []byte) *exec.Cmd {
|
|
|
os.MkdirAll(covDir, os.ModeDir)
|
|
os.MkdirAll(covDir, os.ModeDir)
|
|
|
randomID := uuid.New()
|
|
randomID := uuid.New()
|
|
|
profile := randomID.String() + ".out"
|
|
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, "run", "-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
|
|
|
proc.Stdout = os.Stdout
|
|
proc.Stdout = os.Stdout
|