@@ -1164,7 +1164,7 @@ func testMove(t *testing.T, vcs, url, base, config string) {
1164
1164
tg .runFail ("get" , "-d" , "-u" , url )
1165
1165
tg .grepStderr ("is a custom import path for" , "go get -d -u " + url + " failed for wrong reason" )
1166
1166
tg .runFail ("get" , "-d" , "-f" , "-u" , url )
1167
- tg .grepStderr ("validating server certificate|not found " , "go get -d -f -u " + url + " failed for wrong reason" )
1167
+ tg .grepStderr ("validating server certificate|[nN]ot [fF]ound " , "go get -d -f -u " + url + " failed for wrong reason" )
1168
1168
}
1169
1169
1170
1170
func TestInternalPackageErrorsAreHandled (t * testing.T ) {
@@ -1185,10 +1185,9 @@ func TestMoveGit(t *testing.T) {
1185
1185
testMove (t , "git" , "rsc.io/pdf" , "pdf" , "rsc.io/pdf/.git/config" )
1186
1186
}
1187
1187
1188
- // TODO(rsc): Set up a test case on bitbucket for hg.
1189
- // func TestMoveHG(t *testing.T) {
1190
- // testMove(t, "hg", "rsc.io/x86/x86asm", "x86", "rsc.io/x86/.hg/hgrc")
1191
- // }
1188
+ func TestMoveHG (t * testing.T ) {
1189
+ testMove (t , "hg" , "vcs-test.golang.org/go/custom-hg-hello" , "custom-hg-hello" , "vcs-test.golang.org/go/custom-hg-hello/.hg/hgrc" )
1190
+ }
1192
1191
1193
1192
// TODO(rsc): Set up a test case on SourceForge (?) for svn.
1194
1193
// func testMoveSVN(t *testing.T) {
0 commit comments