]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix TestGoGetDashTIssue8181
authorRuss Cox <rsc@golang.org>
Thu, 3 Nov 2016 01:52:27 +0000 (21:52 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 3 Nov 2016 16:02:19 +0000 (16:02 +0000)
The test case was importing golang.org/x/build/cmd/cl,
which is a package main and cannot be imported.
The test case (stored in a separate repo) has been changed
to import golang.org/x/build/gerrit. Update the test accordingly.

Fixes #17702.

Change-Id: I80e150092111b5a04bb00c992b32edb271edb086
Reviewed-on: https://go-review.googlesource.com/32616
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/go_test.go

index a7712ed5a444b4dba8f314af782b89f8fd6b4a85..15cd534c773714f3e5d437ca84bd81261e450ece 100644 (file)
@@ -1913,7 +1913,7 @@ func TestGoGetDashTIssue8181(t *testing.T) {
        tg.setenv("GOPATH", tg.path("."))
        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")
+       tg.grepStdout("x/build/gerrit", "missing expected x/build/gerrit")
 }
 
 func TestIssue11307(t *testing.T) {