-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description: This change adds `env_vars` to the run_sh. Feature was requested in issue #2050. Example of used in practice: ``` def run(plan, args={}): result = plan.run_sh( run = "mkdir -p kurtosis && echo $EXAMPLE", image = "badouralix/curl-jq", env_vars = { "EXAMPLE": "this_is_a_test" }, ) ``` outputs: ``` Container images used in this run: > badouralix/curl-jq - locally cached > run_sh run="mkdir -p kurtosis && echo $EXAMPLE" image="badouralix/curl-jq" env_vars={"EXAMPLE": "this_is_a_test"} Command returned with exit code '0' and the following output: -------------------- this_is_a_test -------------------- Starlark code successfully run. No output was returned. ``` ## Is this change user facing? YES ## References (if applicable): Closes: #2050
- Loading branch information
1 parent
0ce0711
commit 4e02016
Showing
5 changed files
with
63 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters