]> Cypherpunks repositories - gostls13.git/commitdiff
test/run: print command line for running an individual test
authorRuss Cox <rsc@golang.org>
Fri, 20 Sep 2013 19:25:59 +0000 (15:25 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 20 Sep 2013 19:25:59 +0000 (15:25 -0400)
Fixes #5087.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13812043

test/run.go

index 3535532406f6a94b5fa554ebb56a25a39de7ad36..f1f1ec03458bb384e0e2fd23f3449563deaaa8ed 100644 (file)
@@ -135,7 +135,7 @@ func main() {
                if !*verbose && test.err == nil {
                        continue
                }
-               fmt.Printf("%-20s %-20s: %s\n", test.action, test.goFileName(), errStr)
+               fmt.Printf("# go run run.go -- %s\n%-20s %-20s: %s\n", path.Join(test.dir, test.gofile), test.action, test.goFileName(), errStr)
        }
 
        if *summary {