commit | ead61ca9eff70a6f0bbc9bc9e605237e6c1d234c | [log] [tgz] |
---|---|---|
author | Hana (Hyang-Ah) Kim <hyangah@gmail.com> | Thu Jun 01 14:52:24 2023 -0400 |
committer | Hyang-Ah Hana Kim <hyangah@gmail.com> | Mon Jun 05 18:05:30 2023 +0000 |
tree | 1fdc9d6187d75d4741e9cbab92456e468533b2e2 | |
parent | a8932f3fdd5bc6a8f1ae6217a5a134f4b726f9b9 [diff] |
internal/testenv: add NeedsGo helper Some tests and packages need the go command. For example, go.dev/cl/499255 adds a package that uses `go mod download` and some of its tests won't work if the test environment doesn't have 'go' (e.g. android, ios, wasi/wasm builders). NeedsGo skips the calling tests if 'go' isn't available. x/tools and go projects have similar facilities already, but this is simpler than golang.org/x/tools/internal/testenv's NeedsTool or Go project's src/internal/testenv's MustHaveGoBuild. We just check whether `go env GOROOT` returns something convincing. Change-Id: I96b7e7ddb5a6b7feb02ab02fefd8e14451eecb82 Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/499919 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> Reviewed-by: Peter Weinberger <pjw@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
This repository holds the Go Telemetry server code and libraries.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/telemetry:” in the subject line, so it is easy to find.