]> Cypherpunks repositories - gostls13.git/commit
cmd/go: in tests, don't assume that the 'git' binary is present
authorBryan C. Mills <bcmills@google.com>
Mon, 10 Jun 2019 15:04:29 +0000 (11:04 -0400)
committerBryan C. Mills <bcmills@google.com>
Mon, 10 Jun 2019 17:04:55 +0000 (17:04 +0000)
commit350f71f4cb52dd6c4a9a84225153d9fafe7b4d40
treeedd153fafd1b0fc5f8067146dcad54303bbed9a1
parent8f296f59de0703b0559474beb434a265e277bdca
cmd/go: in tests, don't assume that the 'git' binary is present

Add a helper-function to testenv to make these skips more ergonomic.
Also update a few existing skips in cmd/go/... to use it.

Updates #25300

Change-Id: I4205b4fb2b685dfac1cff3c999f954bff7b0f3c1
Reviewed-on: https://go-review.googlesource.com/c/go/+/181538
Reviewed-by: Ian Lance Taylor <iant@golang.org>
12 files changed:
src/cmd/go/go_test.go
src/cmd/go/internal/modfetch/coderepo_test.go
src/cmd/go/internal/modload/import_test.go
src/cmd/go/internal/modload/query_test.go
src/cmd/go/testdata/script/get_404_meta.txt
src/cmd/go/testdata/script/get_insecure_redirect.txt
src/cmd/go/testdata/script/mod_get_hash.txt
src/cmd/go/testdata/script/mod_gonoproxy.txt
src/cmd/go/testdata/script/mod_gopkg_unstable.txt
src/cmd/go/testdata/script/mod_sumdb_golang.txt
src/cmd/go/vendor_test.go
src/internal/testenv/testenv.go