]> Cypherpunks repositories - gostls13.git/commitdiff
test: allow flags in run action
authorDavid Lazar <lazard@golang.org>
Tue, 14 Mar 2017 04:47:03 +0000 (00:47 -0400)
committerDavid Lazar <lazard@golang.org>
Wed, 29 Mar 2017 17:22:00 +0000 (17:22 +0000)
Previously, we could not run tests with -l=4 on NaCl since the buildrun
action is not supported on NaCl. This lets us run tests with build flags
on NaCl.

Change-Id: I103370c7b823b4ff46f47df97e802da0dc2bc7c3
Reviewed-on: https://go-review.googlesource.com/38170
Run-TryBot: David Lazar <lazard@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
test/run.go

index 3a97cf2c3be361d63b894ad44d2dfc15f815c79c..3cd5352259d0556ee0afaed94ff38d9d2a2a2a5c 100644 (file)
@@ -737,6 +737,7 @@ func (t *test) run() {
                if *linkshared {
                        cmd = append(cmd, "-linkshared")
                }
+               cmd = append(cmd, flags...)
                cmd = append(cmd, t.goFileName())
                out, err := runcmd(append(cmd, args...)...)
                if err != nil {