From: Jay Conrod Date: Wed, 9 Oct 2019 15:10:48 +0000 (-0400) Subject: cmd/go: document multiple conditions in TestScript X-Git-Tag: go1.14beta1~806 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=dae8e719614f6e3d2e4e66071e5c91964b404676;p=gostls13.git 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 Reviewed-by: Bryan C. Mills TryBot-Result: Gobot Gobot --- 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: