]> Cypherpunks repositories - gostls13.git/commitdiff
Revert "Revert "cmd/dist: consolidate runtime CPU tests""
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 27 Apr 2015 23:46:56 +0000 (23:46 +0000)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 28 Apr 2015 02:44:27 +0000 (02:44 +0000)
This reverts commit 81c2233b4abff45e9c781f5e7c50396cfec5a0df.

Change-Id: Ie7024f04dba6352ae79ba68d4da5c0c25844cd8c
Reviewed-on: https://go-review.googlesource.com/9397
Reviewed-by: Dave Cheney <dave@cheney.net>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/dist/test.go

index 112e40a0f3624992b9bc9a5f5459c7ec7e29fb3c..7ffe5d6f6291302f06830ac47f686acb920df026 100644 (file)
@@ -199,21 +199,18 @@ func (t *tester) registerTests() {
        }
 
        // Runtime CPU tests.
-       for _, cpu := range []string{"1", "2", "4"} {
-               cpu := cpu
-               testName := "runtime:cpu" + cpu
-               t.tests = append(t.tests, distTest{
-                       name:    testName,
-                       heading: "GOMAXPROCS=2 runtime -cpu=1,2,4",
-                       fn: func() error {
-                               cmd := t.dirCmd("src", "go", "test", "-short", t.timeout(300), "runtime", "-cpu="+cpu)
-                               // 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())
-                               return cmd.Run()
-                       },
-               })
-       }
+       testName := "runtime:cpu124"
+       t.tests = append(t.tests, distTest{
+               name:    testName,
+               heading: "GOMAXPROCS=2 runtime -cpu=1,2,4",
+               fn: func() error {
+                       cmd := t.dirCmd("src", "go", "test", "-short", t.timeout(300), "runtime", "-cpu=1,2,4")
+                       // 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())
+                       return cmd.Run()
+               },
+       })
 
        // sync tests
        t.tests = append(t.tests, distTest{