mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-30 05:56:54 -05:00
Fix: test run command (#463)
This commit is contained in:
parent
a96e093432
commit
d1eafe2b4c
@ -28,7 +28,7 @@ func RunV2RayProtobuf(config []byte) *exec.Cmd {
|
||||
os.MkdirAll(covDir, os.ModeDir)
|
||||
randomID := uuid.New()
|
||||
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.Stderr = os.Stderr
|
||||
proc.Stdout = os.Stdout
|
||||
|
@ -23,7 +23,7 @@ func BuildV2Ray() error {
|
||||
|
||||
func RunV2RayProtobuf(config []byte) *exec.Cmd {
|
||||
genTestBinaryPath()
|
||||
proc := exec.Command(testBinaryPath, "-config=stdin:", "-format=pb")
|
||||
proc := exec.Command(testBinaryPath, "run", "-config=stdin:", "-format=pb")
|
||||
proc.Stdin = bytes.NewBuffer(config)
|
||||
proc.Stderr = os.Stderr
|
||||
proc.Stdout = os.Stdout
|
||||
|
Loading…
Reference in New Issue
Block a user