Skip to content

Commit

Permalink
don't leave of loop, if test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
marioidival committed Aug 11, 2015
1 parent 2c0db77 commit ce329a4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bro.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,11 @@ func PrepareCmd(path string) bool {

func TestCommand(mainFile, testFile string) bool {

cmd := exec.Command("go", "test", mainFile, testFile)
cmd := exec.Command("go", "test", mainFile, testFile, "-v")
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
err := cmd.Run()
if err != nil {
log.Fatal(err)
return false
}
return true
Expand Down

0 comments on commit ce329a4

Please sign in to comment.