Skip to content

Commit 794c01b

Browse files
committed
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 <[email protected]>
1 parent 1be335b commit 794c01b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cmd/go/go_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1403,9 +1403,9 @@ func TestGoGetDashTIssue8181(t *testing.T) {
14031403
tg.parallel()
14041404
tg.makeTempdir()
14051405
tg.setenv("GOPATH", tg.path("."))
1406-
tg.run("get", "-t", "code.google.com/p/go-get-issue-8181/a", "code.google.com/p/go-get-issue-8181/b")
1407-
tg.runFail("list", "...")
1408-
tg.grepStdout("go.tools/godoc", "missing expected go.tools/godoc")
1406+
tg.run("get", "-v", "-t", "github.com/rsc/go-get-issue-8181/a", "github.com/rsc/go-get-issue-8181/b")
1407+
tg.run("list", "...")
1408+
tg.grepStdout("x/build/cmd/cl", "missing expected x/build/cmd/cl")
14091409
}
14101410

14111411
func TestShadowingLogic(t *testing.T) {

0 commit comments

Comments
 (0)