From: Russ Cox Date: Fri, 19 Jun 2015 18:43:09 +0000 (-0400) Subject: cmd/go: fix test for issue 8181 X-Git-Tag: go1.5beta1~157 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=794c01b8b42e436e9e73dae9c078e9ca2827d115;p=gostls13.git cmd/go: fix test for issue 8181 The test was translated from shell incorrectly, and it depended on having hg installed, which may not be the case. Moved repo to GitHub, updated code, and fixed go list ... command to be expected to succeed. Fixes test for #8181. Change-Id: I7f3e8fb20cd16cac5ed24de6fd952003bc5e08d4 Reviewed-on: https://go-review.googlesource.com/11301 Reviewed-by: Ian Lance Taylor --- diff --git a/src/cmd/go/go_test.go b/src/cmd/go/go_test.go index 0ba72b0486..450be9779c 100644 --- a/src/cmd/go/go_test.go +++ b/src/cmd/go/go_test.go @@ -1403,9 +1403,9 @@ func TestGoGetDashTIssue8181(t *testing.T) { tg.parallel() tg.makeTempdir() tg.setenv("GOPATH", tg.path(".")) - tg.run("get", "-t", "code.google.com/p/go-get-issue-8181/a", "code.google.com/p/go-get-issue-8181/b") - tg.runFail("list", "...") - tg.grepStdout("go.tools/godoc", "missing expected go.tools/godoc") + tg.run("get", "-v", "-t", "github.com/rsc/go-get-issue-8181/a", "github.com/rsc/go-get-issue-8181/b") + tg.run("list", "...") + tg.grepStdout("x/build/cmd/cl", "missing expected x/build/cmd/cl") } func TestShadowingLogic(t *testing.T) {