diff options
| author | Michael Matloob <matloob@golang.org> | 2024-09-09 12:47:33 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-09-09 17:11:52 +0000 |
| commit | adf220a5d5ecaa407401e5f46a8460e97bbca64d (patch) | |
| tree | 320f2506545e44f640c4e4f6993c90810a6be5c5 | |
| parent | cc912bd8ebece1471f606248c97a36b0fb800f86 (diff) | |
| download | go-adf220a5d5ecaa407401e5f46a8460e97bbca64d.tar.xz | |
cmd/go/testdata/script: skip part of test on unsupported platforms
The telemetry script test checks for the existence of telemetry data as
a baseline before checking that the act of setting telemtetry to off
while in local mode doesn't produce telemetry data. Of course, when
we're running on platforms where telemetry is not supported, telemetry
data won't be produced on disk either way. Only check for the existence
of telemetry data on supported platforms.
For #69269
Change-Id: I3a06bbc3d3ca0cf0203b84883f632ecfd9445aae
Reviewed-on: https://go-review.googlesource.com/c/go/+/611876
Reviewed-by: Robert Findley <rfindley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Matloob <matloob@golang.org>
| -rw-r--r-- | src/cmd/go/testdata/script/telemetry.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/go/testdata/script/telemetry.txt b/src/cmd/go/testdata/script/telemetry.txt index 7edbe66b5f..52bf8dee64 100644 --- a/src/cmd/go/testdata/script/telemetry.txt +++ b/src/cmd/go/testdata/script/telemetry.txt @@ -52,7 +52,8 @@ stderr '^go: GOTELEMETRYDIR cannot be modified$' # Test issue #69269: 'go telemetry off' should not increment counters. # Establish that previous commands did write telemetry files. -exists $userconfig/go/telemetry/local +# Only check for the existence of telemetry data on supported platforms. +[!GOOS:openbsd] [!GOOS:solaris] [!GOOS:android] [!GOOS:illumos] [!GOOS:js] [!GOOS:wasip1] [!GOOS:plan9] [!GOARCH:mips] [!GOARCH:mipsle] exists $userconfig/go/telemetry/local # Now check for go telemetry off behavior. rm $userconfig/go/telemetry/local go telemetry off @@ -66,4 +67,4 @@ go telemetry -C=$WORK off ! exists $userconfig/go/telemetry/local go telemetry local go help telemetry -exists $userconfig/go/telemetry/local +[!GOOS:openbsd] [!GOOS:solaris] [!GOOS:android] [!GOOS:illumos] [!GOOS:js] [!GOOS:wasip1] [!GOOS:plan9] [!GOARCH:mips] [!GOARCH:mipsle] exists $userconfig/go/telemetry/local |
