diff options
Diffstat (limited to 'src/cmd/gotest/gotest.go')
-rw-r--r-- | src/cmd/gotest/gotest.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/gotest/gotest.go b/src/cmd/gotest/gotest.go index a7ba8dd11..8c81baf97 100644 --- a/src/cmd/gotest/gotest.go +++ b/src/cmd/gotest/gotest.go @@ -52,7 +52,7 @@ var ( xFlag bool ) -// elapsed returns time elapsed since gotest started. +// elapsed returns the number of seconds since gotest started. func elapsed() float64 { return float64(time.Nanoseconds()-start) / 1e9 } @@ -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 |