From f802b9404844c9cb218dacb5eeaea611922367e5 Mon Sep 17 00:00:00 2001 From: godofredoc Date: Fri, 23 Jun 2023 19:01:58 -0700 Subject: [PATCH] Add docs for magic variables. (flutter/engine#43121) Adds documentation for env variable substitution in test execution. Bug: https://github.com/flutter/flutter/issues/129280 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- engine/src/flutter/ci/builders/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/ci/builders/README.md b/engine/src/flutter/ci/builders/README.md index 5a5133475e..02eee962a4 100644 --- a/engine/src/flutter/ci/builders/README.md +++ b/engine/src/flutter/ci/builders/README.md @@ -297,7 +297,12 @@ default is empty which means no interpreter will be used to run the script and it is assumed the script is already an executable with the right permissions to run in the target platform. * **name** - the name of the step running the script. -* **parameters** - flags or parameters passed to the script. +* **parameters** - flags or parameters passed to the script. Parameters +accept magic environment variables(placeholders replaced before executing +the test). Magic environment variables have the following limitations: +only `${FLUTTER_LOGS_DIR}` is currently supported and it needs to be used +alone within the parameter string(e.g. `["${FLUTTER_LOGS_DIR}"]` is OK +but `["path=${FLUTTER_LOGS_DIR}"]` is not). * **Script** - the path to the script to execute relative to the checkout directory. * **contexts** - a list of available contexts to add to the text execution step.