Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Unified Diff: recipe_modules/context/tests/env.expected/basic.json

Issue 2925453002: [context] Add path prefix/suffix manipulation. (Closed)
Patch Set: advise Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« recipe_modules/context/api.py ('K') | « recipe_modules/context/tests/env.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/context/tests/env.expected/basic.json
diff --git a/recipe_modules/context/tests/env.expected/basic.json b/recipe_modules/context/tests/env.expected/basic.json
index 2756a903db08fbd3d619be5bba298a967ba82aae..e98f60cc30bb7a0098b7a63aa942392f761254bc 100644
--- a/recipe_modules/context/tests/env.expected/basic.json
+++ b/recipe_modules/context/tests/env.expected/basic.json
@@ -27,6 +27,83 @@
},
"name": "with 2 envs"
},
+ {
+ "cmd": [
+ "bash",
+ "-c",
+ "echo $FOO"
+ ],
+ "env": {
+ "FOO": "bar"
+ },
+ "name": "env step"
+ },
+ {
+ "cmd": [
+ "bash",
+ "-c",
+ "echo $FOO"
+ ],
+ "env": {
+ "FOO": "foo:<FOO>:baz"
+ },
+ "name": "env step augmented"
+ },
+ {
+ "cmd": [
+ "bash",
+ "-c",
+ "echo $FOO"
+ ],
+ "env": {
+ "FOO": "[START_DIR]/pants:[START_DIR]/shirt:foo:<FOO>:baz:[START_DIR]/pants:[START_DIR]/shirt"
+ },
+ "name": "env step with prefix and suffix"
+ },
+ {
+ "cmd": [
+ "bash",
+ "-c",
+ "echo $FOO"
+ ],
+ "env": {
+ "FOO": "[START_DIR]/pants:foo:<FOO>:baz:[START_DIR]/pants"
+ },
+ "name": "env with path removal"
+ },
+ {
+ "cmd": [
+ "bash",
+ "-c",
+ "echo $FOO"
+ ],
+ "env": {
+ "FOO": "foo:<FOO>:baz"
+ },
+ "name": "env with full path removal"
+ },
+ {
+ "cmd": [
+ "bash",
+ "-c",
+ "echo $FOO"
+ ],
+ "env": {
+ "FOO": "[START_DIR]/pants:[START_DIR]/shirt:foo:<FOO>:baz"
+ },
+ "name": "env with empty prefix"
+ },
+ {
+ "cmd": [
+ "bash",
+ "-c",
+ "echo $FOO"
+ ],
+ "env": {
+ "FOO": "[START_DIR]/shirt:<FOO>"
+ },
+ "name": "env with default value"
+ },
{
"name": "$result",
"recipe_result": null,
« recipe_modules/context/api.py ('K') | « recipe_modules/context/tests/env.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698