@@ -1120,7 +1120,7 @@ func testMove(t *testing.T, vcs, url, base, config string) {
1120
1120
tg .runFail ("get" , "-d" , "-u" , url )
1121
1121
tg .grepStderr ("is a custom import path for" , "go get -d -u " + url + " failed for wrong reason" )
1122
1122
tg .runFail ("get" , "-d" , "-f" , "-u" , url )
1123
- tg .grepStderr ("validating server certificate|not found " , "go get -d -f -u " + url + " failed for wrong reason" )
1123
+ tg .grepStderr ("validating server certificate|[nN]ot [fF]ound " , "go get -d -f -u " + url + " failed for wrong reason" )
1124
1124
}
1125
1125
1126
1126
func TestInternalPackageErrorsAreHandled (t * testing.T ) {
@@ -1141,10 +1141,9 @@ func TestMoveGit(t *testing.T) {
1141
1141
testMove (t , "git" , "rsc.io/pdf" , "pdf" , "rsc.io/pdf/.git/config" )
1142
1142
}
1143
1143
1144
- // TODO(rsc): Set up a test case on bitbucket for hg.
1145
- // func TestMoveHG(t *testing.T) {
1146
- // testMove(t, "hg", "rsc.io/x86/x86asm", "x86", "rsc.io/x86/.hg/hgrc")
1147
- // }
1144
+ func TestMoveHG (t * testing.T ) {
1145
+ testMove (t , "hg" , "vcs-test.golang.org/go/custom-hg-hello" , "custom-hg-hello" , "vcs-test.golang.org/go/custom-hg-hello/.hg/hgrc" )
1146
+ }
1148
1147
1149
1148
// TODO(rsc): Set up a test case on SourceForge (?) for svn.
1150
1149
// func testMoveSVN(t *testing.T) {
0 commit comments