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

Side by Side 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 unified diff | Download patch
OLDNEW
1 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "echo", 4 "echo",
5 "hello" 5 "hello"
6 ], 6 ],
7 "name": "no env" 7 "name": "no env"
8 }, 8 },
9 { 9 {
10 "cmd": [ 10 "cmd": [
(...skipping 10 matching lines...) Expand all
21 "echo", 21 "echo",
22 "hello" 22 "hello"
23 ], 23 ],
24 "env": { 24 "env": {
25 "SOMETHING": "1", 25 "SOMETHING": "1",
26 "SOMETHING_ELSE": "0" 26 "SOMETHING_ELSE": "0"
27 }, 27 },
28 "name": "with 2 envs" 28 "name": "with 2 envs"
29 }, 29 },
30 { 30 {
31 "cmd": [
32 "bash",
33 "-c",
34 "echo $FOO"
35 ],
36 "env": {
37 "FOO": "bar"
38 },
39 "name": "env step"
40 },
41 {
42 "cmd": [
43 "bash",
44 "-c",
45 "echo $FOO"
46 ],
47 "env": {
48 "FOO": "foo:<FOO>:baz"
49 },
50 "name": "env step augmented"
51 },
52 {
53 "cmd": [
54 "bash",
55 "-c",
56 "echo $FOO"
57 ],
58 "env": {
59 "FOO": "[START_DIR]/pants:[START_DIR]/shirt:foo:<FOO>:baz:[START_DIR]/pant s:[START_DIR]/shirt"
60 },
61 "name": "env step with prefix and suffix"
62 },
63 {
64 "cmd": [
65 "bash",
66 "-c",
67 "echo $FOO"
68 ],
69 "env": {
70 "FOO": "[START_DIR]/pants:foo:<FOO>:baz:[START_DIR]/pants"
71 },
72 "name": "env with path removal"
73 },
74 {
75 "cmd": [
76 "bash",
77 "-c",
78 "echo $FOO"
79 ],
80 "env": {
81 "FOO": "foo:<FOO>:baz"
82 },
83 "name": "env with full path removal"
84 },
85 {
86 "cmd": [
87 "bash",
88 "-c",
89 "echo $FOO"
90 ],
91 "env": {
92 "FOO": "[START_DIR]/pants:[START_DIR]/shirt:foo:<FOO>:baz"
93 },
94 "name": "env with empty prefix"
95 },
96 {
97 "cmd": [
98 "bash",
99 "-c",
100 "echo $FOO"
101 ],
102 "env": {
103 "FOO": "[START_DIR]/shirt:<FOO>"
104 },
105 "name": "env with default value"
106 },
107 {
31 "name": "$result", 108 "name": "$result",
32 "recipe_result": null, 109 "recipe_result": null,
33 "status_code": 0 110 "status_code": 0
34 } 111 }
35 ] 112 ]
OLDNEW
« 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