From: David Lazar Date: Tue, 14 Mar 2017 04:47:03 +0000 (-0400) Subject: test: allow flags in run action X-Git-Tag: go1.9beta1~935 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f3f5b10e06f6bb29731e9213dd8745a9b1857568;p=gostls13.git test: allow flags in run action 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 TryBot-Result: Gobot Gobot Reviewed-by: Austin Clements --- diff --git a/test/run.go b/test/run.go index 3a97cf2c3b..3cd5352259 100644 --- a/test/run.go +++ b/test/run.go @@ -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 {