diff options
author | Bryan C. Mills <bcmills@google.com> | 2022-04-08 15:23:14 -0400 |
---|---|---|
committer | Bryan Mills <bcmills@google.com> | 2022-04-12 03:13:28 +0000 |
commit | e299381cd1b4b7efecf7642ebfcd5e76ffa65e6d (patch) | |
tree | 8c9f0c3f6f22c32f0fd34b9427e6ea2b12329d32 /src/cmd/go/testdata/script/README | |
parent | d4dbad53ca080d767798ee4267999868d7f2c22d (diff) | |
download | go-e299381cd1b4b7efecf7642ebfcd5e76ffa65e6d.tar.gz go-e299381cd1b4b7efecf7642ebfcd5e76ffa65e6d.zip |
cmd/go: fix TestScript/build_trimpath_goroot when built with a mismatched GOROOT_FINAL
Fixes #52236.
Updates #51461.
Change-Id: Ie91e0256afd45e9bbd60fd8cdc696363027ab696
Reviewed-on: https://go-review.googlesource.com/c/go/+/399156
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/cmd/go/testdata/script/README')
-rw-r--r-- | src/cmd/go/testdata/script/README | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/script/README b/src/cmd/go/testdata/script/README index 17b582d662..85e575d56e 100644 --- a/src/cmd/go/testdata/script/README +++ b/src/cmd/go/testdata/script/README @@ -90,6 +90,8 @@ should only run when the condition is satisfied. The available conditions are: - [exec:prog] for whether prog is available for execution (found by exec.LookPath) - [GODEBUG:value] for whether value is one of the comma-separated entries in the GODEBUG variable - [buildmode:value] for whether -buildmode=value is supported + - [trimpath] for whether the 'go' binary was built with -trimpath + - [mismatched-goroot] for whether the test's GOROOT_FINAL does not match the real GOROOT A condition can be negated: [!short] means to run the rest of the line when testing.Short() is false. Multiple conditions may be given for a single |