mirror of https://github.com/golang/go.git
cmd/go: remove a redundant HasExec check in TestScript/README
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>
This commit is contained in:
parent
3a872a2262
commit
ca49b8d7af
|
|
@ -37,10 +37,6 @@ func checkScriptReadme(t *testing.T, engine *script.Engine, env []string) {
|
|||
}
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue