Gopher Robot submitted the change![Open in Gerrit]()
Change information
Commit message:
cmd/golangorg: support absolute paths in testTree
The use of strings.TrimPrefix on filepath.ToSlash output works on all
OSes when testTree is given a relative path like "../../_content",
but it doesn't work on Windows if testTree is given an absolute path.
The next change will do that (in order to process GOROOT/doc content),
so prepare for it by migrating to filepath.Rel to compute relative path.
For golang/go#78211.
Change-Id: I2117d916e1c4112bfbd667597e32622039040dd0
Files:
- M cmd/golangorg/server_test.go
Change size: S
Delta: 1 file changed, 12 insertions(+), 7 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +2 by Alan Donovan, +1 by Dmitri Shuralyov
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Gerrit-MessageType: merged
Gerrit-Project: website
Gerrit-Branch: master
Gerrit-Change-Id: I2117d916e1c4112bfbd667597e32622039040dd0
Gerrit-Change-Number: 756501
Gerrit-PatchSet: 3