aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/README
diff options
context:
space:
mode:
authorJay Conrod <jayconrod@google.com>2019-10-09 11:10:48 -0400
committerJay Conrod <jayconrod@google.com>2019-10-09 17:56:48 +0000
commitdae8e719614f6e3d2e4e66071e5c91964b404676 (patch)
tree5b30ff8f283bac452d5056320bfc5df51c180aae /src/cmd/go/testdata/script/README
parent22d3da47818a884454ff2a9818edbae358b43e49 (diff)
downloadgo-dae8e719614f6e3d2e4e66071e5c91964b404676.tar.gz
go-dae8e719614f6e3d2e4e66071e5c91964b404676.zip
cmd/go: document multiple conditions in TestScript
This functionality already exists but was undocumented. Related to comments in CL 198797. Change-Id: Icce40bd7c362423e6ed9c20673ce3de1311e5fd5 Reviewed-on: https://go-review.googlesource.com/c/go/+/200040 Run-TryBot: Jay Conrod <jayconrod@google.com> Reviewed-by: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/go/testdata/script/README')
-rw-r--r--src/cmd/go/testdata/script/README4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/go/testdata/script/README b/src/cmd/go/testdata/script/README
index 66ab8515c3..46444d84d8 100644
--- a/src/cmd/go/testdata/script/README
+++ b/src/cmd/go/testdata/script/README
@@ -79,7 +79,9 @@ 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)
A condition can be negated: [!short] means to run the rest of the line
-when testing.Short() is false.
+when testing.Short() is false. Multiple conditions may be given for a single
+command, for example, '[linux] [amd64] skip'. The command will run if all conditions
+are satisfied.
The commands are: