Skip to content

Commit

Permalink
fix format ref #161
Browse files Browse the repository at this point in the history
  • Loading branch information
Alvaro Denis committed Nov 15, 2019
1 parent 770750f commit 1dec968
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cli/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const (
)

func execCommand(args ...string) *exec.Cmd {
args = append(args)
cmd := exec.Command(binaryPath, args...)
cmd.Env = os.Environ()
cmd.Env = append(cmd.Env, "AUTO_PRESS_BUTTONS="+autopressButtons())
Expand Down Expand Up @@ -106,7 +105,7 @@ func TestMain(m *testing.M) {
// Build cli binary file.
args := []string{"build", "-ldflags", "-X main.AUTO_PRESS_BUTTONS=true", "-o", binaryPath, "../../../cmd/cli/cli.go"}
if err := exec.Command("go", args...).Run(); err != nil {
fmt.Fprintf(os.Stderr, fmt.Sprintf("Make %v binary failed: %v\n", binaryName, err))
fmt.Fprint(os.Stderr, fmt.Sprintf("Make %v binary failed: %v\n", binaryName, err))
os.Exit(1)
}

Expand Down

0 comments on commit 1dec968

Please sign in to comment.