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

Side by Side Diff: recipe_modules/file/examples/copytree.expected/basic.json

Issue 2918463002: [recipe_modules/file] add real file module to engine. (Closed)
Patch Set: fix stuff 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
(Empty)
1 [
2 {
3 "cmd": [
4 "python",
5 "-u",
6 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
7 "--json-output",
8 "/path/to/tmp/json",
9 "ensure-directory",
10 "--mode",
11 "0777",
12 "[START_DIR]/some dir"
13 ],
14 "infra_step": true,
15 "name": "ensure \"some dir\"",
16 "~followup_annotations": [
17 "@@@STEP_LOG_LINE@json.output@{@@@",
18 "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
19 "@@@STEP_LOG_LINE@json.output@}@@@",
20 "@@@STEP_LOG_END@json.output@@@"
21 ]
22 },
23 {
24 "cmd": [
25 "python",
26 "-u",
27 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
28 "--json-output",
29 "/path/to/tmp/json",
30 "copy",
31 "a",
32 "[START_DIR]/some dir/a"
33 ],
34 "infra_step": true,
35 "name": "write a",
36 "~followup_annotations": [
37 "@@@STEP_LOG_LINE@json.output@{@@@",
38 "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
39 "@@@STEP_LOG_LINE@json.output@}@@@",
40 "@@@STEP_LOG_END@json.output@@@"
41 ]
42 },
43 {
44 "cmd": [
45 "python",
46 "-u",
47 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
48 "--json-output",
49 "/path/to/tmp/json",
50 "copy",
51 "aa",
52 "[START_DIR]/some dir/aa"
53 ],
54 "infra_step": true,
55 "name": "write aa",
56 "~followup_annotations": [
57 "@@@STEP_LOG_LINE@json.output@{@@@",
58 "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
59 "@@@STEP_LOG_LINE@json.output@}@@@",
60 "@@@STEP_LOG_END@json.output@@@"
61 ]
62 },
63 {
64 "cmd": [
65 "python",
66 "-u",
67 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
68 "--json-output",
69 "/path/to/tmp/json",
70 "copy",
71 "b",
72 "[START_DIR]/some dir/b"
73 ],
74 "infra_step": true,
75 "name": "write b",
76 "~followup_annotations": [
77 "@@@STEP_LOG_LINE@json.output@{@@@",
78 "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
79 "@@@STEP_LOG_LINE@json.output@}@@@",
80 "@@@STEP_LOG_END@json.output@@@"
81 ]
82 },
83 {
84 "cmd": [
85 "python",
86 "-u",
87 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
88 "--json-output",
89 "/path/to/tmp/json",
90 "copy",
91 "bb",
92 "[START_DIR]/some dir/bb"
93 ],
94 "infra_step": true,
95 "name": "write bb",
96 "~followup_annotations": [
97 "@@@STEP_LOG_LINE@json.output@{@@@",
98 "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
99 "@@@STEP_LOG_LINE@json.output@}@@@",
100 "@@@STEP_LOG_END@json.output@@@"
101 ]
102 },
103 {
104 "cmd": [
105 "python",
106 "-u",
107 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
108 "--json-output",
109 "/path/to/tmp/json",
110 "copy",
111 "c",
112 "[START_DIR]/some dir/c"
113 ],
114 "infra_step": true,
115 "name": "write c",
116 "~followup_annotations": [
117 "@@@STEP_LOG_LINE@json.output@{@@@",
118 "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
119 "@@@STEP_LOG_LINE@json.output@}@@@",
120 "@@@STEP_LOG_END@json.output@@@"
121 ]
122 },
123 {
124 "cmd": [
125 "python",
126 "-u",
127 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
128 "--json-output",
129 "/path/to/tmp/json",
130 "copy",
131 "cc",
132 "[START_DIR]/some dir/cc"
133 ],
134 "infra_step": true,
135 "name": "write cc",
136 "~followup_annotations": [
137 "@@@STEP_LOG_LINE@json.output@{@@@",
138 "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
139 "@@@STEP_LOG_LINE@json.output@}@@@",
140 "@@@STEP_LOG_END@json.output@@@"
141 ]
142 },
143 {
144 "cmd": [
145 "python",
146 "-u",
147 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
148 "--json-output",
149 "/path/to/tmp/json",
150 "rmtree",
151 "[START_DIR]/some other dir"
152 ],
153 "infra_step": true,
154 "name": "make sure dest is gone",
155 "~followup_annotations": [
156 "@@@STEP_LOG_LINE@json.output@{@@@",
157 "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
158 "@@@STEP_LOG_LINE@json.output@}@@@",
159 "@@@STEP_LOG_END@json.output@@@"
160 ]
161 },
162 {
163 "cmd": [
164 "python",
165 "-u",
166 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
167 "--json-output",
168 "/path/to/tmp/json",
169 "copytree",
170 "[START_DIR]/some dir",
171 "[START_DIR]/some other dir"
172 ],
173 "infra_step": true,
174 "name": "copy it",
175 "~followup_annotations": [
176 "@@@STEP_LOG_LINE@json.output@{@@@",
177 "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
178 "@@@STEP_LOG_LINE@json.output@}@@@",
179 "@@@STEP_LOG_END@json.output@@@"
180 ]
181 },
182 {
183 "cmd": [
184 "python",
185 "-u",
186 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
187 "--json-output",
188 "/path/to/tmp/json",
189 "listdir",
190 "[START_DIR]/some other dir"
191 ],
192 "infra_step": true,
193 "name": "list new dir",
194 "stdout": "/path/to/tmp/",
195 "~followup_annotations": [
196 "@@@STEP_LOG_LINE@json.output@{@@@",
197 "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
198 "@@@STEP_LOG_LINE@json.output@}@@@",
199 "@@@STEP_LOG_END@json.output@@@"
200 ]
201 },
202 {
203 "cmd": [
204 "python",
205 "-u",
206 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
207 "--json-output",
208 "/path/to/tmp/json",
209 "glob",
210 "[START_DIR]/some other dir/*a"
211 ],
212 "infra_step": true,
213 "name": "glob *a",
214 "stdout": "/path/to/tmp/",
215 "~followup_annotations": [
216 "@@@STEP_LOG_LINE@json.output@{@@@",
217 "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
218 "@@@STEP_LOG_LINE@json.output@}@@@",
219 "@@@STEP_LOG_END@json.output@@@"
220 ]
221 },
222 {
223 "cmd": [
224 "python",
225 "-u",
226 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
227 "--json-output",
228 "/path/to/tmp/json",
229 "copy",
230 "[START_DIR]/some other dir/a",
231 "/path/to/tmp/"
232 ],
233 "infra_step": true,
234 "name": "read [START_DIR]/some other dir/a",
235 "~followup_annotations": [
236 "@@@STEP_LOG_LINE@json.output@{@@@",
237 "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
238 "@@@STEP_LOG_LINE@json.output@}@@@",
239 "@@@STEP_LOG_END@json.output@@@"
240 ]
241 },
242 {
243 "cmd": [
244 "python",
245 "-u",
246 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
247 "--json-output",
248 "/path/to/tmp/json",
249 "copy",
250 "[START_DIR]/some other dir/aa",
251 "/path/to/tmp/"
252 ],
253 "infra_step": true,
254 "name": "read [START_DIR]/some other dir/aa",
255 "~followup_annotations": [
256 "@@@STEP_LOG_LINE@json.output@{@@@",
257 "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
258 "@@@STEP_LOG_LINE@json.output@}@@@",
259 "@@@STEP_LOG_END@json.output@@@"
260 ]
261 },
262 {
263 "cmd": [
264 "python",
265 "-u",
266 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
267 "--json-output",
268 "/path/to/tmp/json",
269 "remove",
270 "[START_DIR]/some other dir/a"
271 ],
272 "infra_step": true,
273 "name": "rm a",
274 "~followup_annotations": [
275 "@@@STEP_LOG_LINE@json.output@{@@@",
276 "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
277 "@@@STEP_LOG_LINE@json.output@}@@@",
278 "@@@STEP_LOG_END@json.output@@@"
279 ]
280 },
281 {
282 "cmd": [
283 "python",
284 "-u",
285 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
286 "--json-output",
287 "/path/to/tmp/json",
288 "glob",
289 "[START_DIR]/some other dir/*a"
290 ],
291 "infra_step": true,
292 "name": "glob *a (2)",
293 "stdout": "/path/to/tmp/",
294 "~followup_annotations": [
295 "@@@STEP_LOG_LINE@json.output@{@@@",
296 "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
297 "@@@STEP_LOG_LINE@json.output@}@@@",
298 "@@@STEP_LOG_END@json.output@@@"
299 ]
300 },
301 {
302 "cmd": [
303 "python",
304 "-u",
305 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
306 "--json-output",
307 "/path/to/tmp/json",
308 "rmglob",
309 "[START_DIR]/some other dir",
310 "b*"
311 ],
312 "infra_step": true,
313 "name": "rm b*",
314 "~followup_annotations": [
315 "@@@STEP_LOG_LINE@json.output@{@@@",
316 "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
317 "@@@STEP_LOG_LINE@json.output@}@@@",
318 "@@@STEP_LOG_END@json.output@@@"
319 ]
320 },
321 {
322 "cmd": [
323 "python",
324 "-u",
325 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
326 "--json-output",
327 "/path/to/tmp/json",
328 "listdir",
329 "[START_DIR]/some other dir"
330 ],
331 "infra_step": true,
332 "name": "list new dir (2)",
333 "stdout": "/path/to/tmp/",
334 "~followup_annotations": [
335 "@@@STEP_LOG_LINE@json.output@{@@@",
336 "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
337 "@@@STEP_LOG_LINE@json.output@}@@@",
338 "@@@STEP_LOG_END@json.output@@@"
339 ]
340 },
341 {
342 "cmd": [
343 "python",
344 "-u",
345 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
346 "--json-output",
347 "/path/to/tmp/json",
348 "rmcontents",
349 "[START_DIR]/some other dir"
350 ],
351 "infra_step": true,
352 "name": "remove \"some other dir/*\"",
353 "~followup_annotations": [
354 "@@@STEP_LOG_LINE@json.output@{@@@",
355 "@@@STEP_LOG_LINE@json.output@ \"ok\": true@@@",
356 "@@@STEP_LOG_LINE@json.output@}@@@",
357 "@@@STEP_LOG_END@json.output@@@"
358 ]
359 },
360 {
361 "name": "$result",
362 "recipe_result": null,
363 "status_code": 0
364 }
365 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698