diff options
| author | Michael Matloob <matloob@golang.org> | 2023-08-31 14:24:48 -0400 |
|---|---|---|
| committer | Michael Matloob <matloob@golang.org> | 2023-08-31 19:09:35 +0000 |
| commit | 12a45f89165c12c2e4cb6fc34a136f032be38771 (patch) | |
| tree | 5298865fbd92bb4f2ba0e79821e1e05c25977973 /internal/stdlib/stdlib_test.go | |
| parent | 92416b2556a4da821deb05a70c3ff92657654c17 (diff) | |
| download | go-x-pkgsite-12a45f89165c12c2e4cb6fc34a136f032be38771.tar.xz | |
internal/stdlib: mark TestResolveSupportedBranches as requiring git
ResolveSupportedBranches uses the git command, and the Windows
longtest builders don't have git, so skip the test when git isn't
present.
For golang/go#61209
Change-Id: I230793c76702ad0c3e153f9d70031a370b20ac30
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/524799
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
kokoro-CI: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'internal/stdlib/stdlib_test.go')
| -rw-r--r-- | internal/stdlib/stdlib_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/stdlib/stdlib_test.go b/internal/stdlib/stdlib_test.go index 3363e5c3..7917e1ea 100644 --- a/internal/stdlib/stdlib_test.go +++ b/internal/stdlib/stdlib_test.go @@ -404,6 +404,7 @@ func TestVersionMatchesHash(t *testing.T) { func TestResolveSupportedBranches(t *testing.T) { testenv.MustHaveExternalNetwork(t) // ResolveSupportedBranches accesses the go repo at go.googlesource.com + testenv.MustHaveExecPath(t, "git") // ResolveSupportedBranches uses the git command to do so. got, err := ResolveSupportedBranches() if err != nil { |
