]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: fix build after "go test" argument order change
authorShenghou Ma <minux@golang.org>
Wed, 23 Sep 2015 22:53:16 +0000 (18:53 -0400)
committerMinux Ma <minux@golang.org>
Wed, 23 Sep 2015 23:10:14 +0000 (23:10 +0000)
Change-Id: I332cd4a4b48cbb52d2beeb16c4a24833bb7069d7
Reviewed-on: https://go-review.googlesource.com/14890
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/dist/test.go

index ad7bd09ceb3a738a476d827d2200540507e3e052..0e9666bc915d2dba8f42bff7667b712b62dcec5a 100644 (file)
@@ -351,7 +351,7 @@ func (t *tester) registerTests() {
                name:    testName,
                heading: "GOMAXPROCS=2 runtime -cpu=1,2,4",
                fn: func() error {
-                       cmd := t.dirCmd("src", "go", "test", "-short", t.timeout(300), t.tags(), "runtime", "-cpu=1,2,4")
+                       cmd := t.dirCmd("src", "go", "test", "-short", t.timeout(300), t.tags(), "-cpu=1,2,4", "runtime")
                        // We set GOMAXPROCS=2 in addition to -cpu=1,2,4 in order to test runtime bootstrap code,
                        // creation of first goroutines and first garbage collections in the parallel setting.
                        cmd.Env = mergeEnvLists([]string{"GOMAXPROCS=2"}, os.Environ())
@@ -364,7 +364,7 @@ func (t *tester) registerTests() {
                name:    "sync_cpu",
                heading: "sync -cpu=10",
                fn: func() error {
-                       return t.dirCmd("src", "go", "test", "sync", "-short", t.timeout(120), t.tags(), "-cpu=10").Run()
+                       return t.dirCmd("src", "go", "test", "-short", t.timeout(120), t.tags(), "-cpu=10", "sync").Run()
                },
        })