Skip to content

Commit

Permalink
Fix: test run command (v2fly#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
kslr authored and xiaokangwang committed Sep 4, 2021
1 parent a96e093 commit d1eafe2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testing/scenarios/common_coverage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion testing/scenarios/common_regular.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1eafe2

Please sign in to comment.