From dae8e719614f6e3d2e4e66071e5c91964b404676 Mon Sep 17 00:00:00 2001 From: Jay Conrod Date: Wed, 9 Oct 2019 11:10:48 -0400 Subject: [PATCH] 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 --- src/cmd/go/testdata/script/README | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- 2.50.0