-
Notifications
You must be signed in to change notification settings - Fork 17.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/go: convert TestAccidentalGitCheckout to a script test
As far as I can determine, this is the only existing non-script test that relies on vcs-test.golang.org. I am attempting to eliminate the vcs-test server, and to keep configuration straightforward I would like to only set up its replacement for script tests. For #27494. Change-Id: Ib978228b9c3f403af5f1c445e08942cbe7915b62 Reviewed-on: https://go-review.googlesource.com/c/go/+/418103 Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com>
- Loading branch information
Showing
2 changed files
with
14 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This test verifies a fix for a security issue; see https://go.dev/issue/22125. | ||
|
||
[!net] skip | ||
[!exec:git] skip | ||
[!exec:svn] skip | ||
|
||
env GO111MODULE=off | ||
|
||
cd $GOPATH | ||
! go get -u vcs-test.golang.org/go/test1-svn-git | ||
stderr 'src'${/}'vcs-test.* uses git, but parent .*src'${/}'vcs-test.* uses svn' | ||
|
||
[!case-sensitive] ! go get -u vcs-test.golang.org/go/test2-svn-git/test2main | ||
[!case-sensitive] stderr 'src'${/}'vcs-test.* uses git, but parent .*src'${/}'vcs-test.* uses svn' |