Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Arguments can be passed

  • Loading branch information...
commit 7209139a1033b90ec4c31af88ec58a355f56e026 1 parent 51984ce
@ryanslade authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 goautotest.go
View
4 goautotest.go
@@ -36,7 +36,9 @@ func main() {
if strings.HasSuffix(ev.Name, ".go") {
fmt.Println("Running tests...")
- cmd := exec.Command("go", "test")
+ args := append([]string{"test"}, os.Args[1:]...)
+ cmd := exec.Command("go", args...)
+
stdout, err := cmd.StdoutPipe()
if err != nil {
fmt.Println(err)
Please sign in to comment.
Something went wrong with that request. Please try again.