]> Cypherpunks repositories - gostls13.git/commitdiff
windows: reset command var to sh for correct error output messages
authorJoe Poirier <jdpoirier@gmail.com>
Sat, 7 May 2011 05:05:04 +0000 (22:05 -0700)
committerRob Pike <r@golang.org>
Sat, 7 May 2011 05:05:04 +0000 (22:05 -0700)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4492043

src/cmd/gotest/gotest.go

index a7ba8dd11a76bd1def2d6d1773f98944add62be2..263ada921b2b17c9ffa426c50f7eeebea1de4f27 100644 (file)
@@ -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