The test checks testenv.HasExec right before calling testenv.Command,
but testenv.Command already skips the test if HasExec is false.
Change-Id: I04716bf823a1b76640394a964973ff34c65afb1f
Reviewed-on: https://go-review.googlesource.com/c/go/+/491658
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
}
args.Conditions = conds.String()
- if !testenv.HasExec() {
- t.Skipf("updating script README requires os/exec")
- }
-
doc := new(strings.Builder)
cmd := testenv.Command(t, testGo, "doc", "cmd/go/internal/script")
cmd.Env = env