From 733fde588babc6e7455d4e2aa53e34defc99f966 Mon Sep 17 00:00:00 2001 From: Joe Poirier Date: Fri, 6 May 2011 22:05:04 -0700 Subject: [PATCH] windows: reset command var to sh for correct error output messages R=golang-dev, r CC=golang-dev https://golang.org/cl/4492043 --- src/cmd/gotest/gotest.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cmd/gotest/gotest.go b/src/cmd/gotest/gotest.go index a7ba8dd11a..263ada921b 100644 --- a/src/cmd/gotest/gotest.go +++ b/src/cmd/gotest/gotest.go @@ -182,7 +182,7 @@ func getTestFileNames() { } } -// parseFiles parses the files and remembers the packages we find. +// parseFiles parses the files and remembers the packages we find. func parseFiles() { fileSet := token.NewFileSet() for _, f := range files { @@ -285,6 +285,7 @@ func doRun(argv []string, returnStdout bool) string { } cmd += `"` + v + `"` } + command = "sh" argv = []string{"sh", "-c", cmd} } var err os.Error