]> Cypherpunks repositories - gostls13.git/commit
cmd/go: write an hgrc file in TestMoveHG
authorBryan C. Mills <bcmills@google.com>
Tue, 18 Sep 2018 18:00:25 +0000 (14:00 -0400)
committerBryan C. Mills <bcmills@google.com>
Wed, 19 Sep 2018 16:57:32 +0000 (16:57 +0000)
commit620bd5a3bc640f60a00d8b49c27c51e8ce67e67b
tree8fc2c3e72ff4e1b952729e5aac3829410e60a995
parentf40dc5cb50aad720fb3d42b9d69c158dde07d0aa
cmd/go: write an hgrc file in TestMoveHG

Some variants of Mercurial respond differently to “permission denied” errors
than to “file not found”, and we set HOME to point to an absolute path that may
produce the former instead of the latter.

To discourage Mercurial from trying HOME, give it an explicit (empty)
configuration in the working directory instead.

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