]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix test for issue 8181
authorRuss Cox <rsc@golang.org>
Fri, 19 Jun 2015 18:43:09 +0000 (14:43 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 22 Jun 2015 16:44:46 +0000 (16:44 +0000)
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>
src/cmd/go/go_test.go

index 0ba72b04869d90be7dc052e045cc10f701952071..450be9779c873fc306635e3162ea79be13fa4879 100644 (file)
@@ -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) {