mirror of
https://github.com/golang/go
synced 2024-11-11 23:50:22 -07:00
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 <iant@golang.org>
This commit is contained in:
parent
1be335b608
commit
794c01b8b4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user