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

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 rmtree 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 "timeout": 5
17 },
18 {
19 "cmd": [
20 "python",
21 "-u",
22 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
23 "--json-output",
24 "/path/to/tmp/json",
25 "copy",
26 "a",
27 "[START_DIR]/some dir/a"
28 ],
29 "infra_step": true,
30 "name": "write a",
31 "timeout": 30
32 },
33 {
34 "cmd": [
35 "python",
36 "-u",
37 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
38 "--json-output",
39 "/path/to/tmp/json",
40 "copy",
41 "aa",
42 "[START_DIR]/some dir/aa"
43 ],
44 "infra_step": true,
45 "name": "write aa",
46 "timeout": 30
47 },
48 {
49 "cmd": [
50 "python",
51 "-u",
52 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
53 "--json-output",
54 "/path/to/tmp/json",
55 "copy",
56 "b",
57 "[START_DIR]/some dir/b"
58 ],
59 "infra_step": true,
60 "name": "write b",
61 "timeout": 30
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 "bb",
72 "[START_DIR]/some dir/bb"
73 ],
74 "infra_step": true,
75 "name": "write bb",
76 "timeout": 30
77 },
78 {
79 "cmd": [
80 "python",
81 "-u",
82 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
83 "--json-output",
84 "/path/to/tmp/json",
85 "copy",
86 "c",
87 "[START_DIR]/some dir/c"
88 ],
89 "infra_step": true,
90 "name": "write c",
91 "timeout": 30
92 },
93 {
94 "cmd": [
95 "python",
96 "-u",
97 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
98 "--json-output",
99 "/path/to/tmp/json",
100 "copy",
101 "cc",
102 "[START_DIR]/some dir/cc"
103 ],
104 "infra_step": true,
105 "name": "write cc",
106 "timeout": 30
107 },
108 {
109 "cmd": [
110 "python",
111 "-u",
112 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
113 "--json-output",
114 "/path/to/tmp/json",
115 "rmtree",
116 "[START_DIR]/some other dir"
117 ],
118 "infra_step": true,
119 "name": "make sure dest is gone"
120 },
121 {
122 "cmd": [
123 "python",
124 "-u",
125 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
126 "--json-output",
127 "/path/to/tmp/json",
128 "copytree",
129 "[START_DIR]/some dir",
130 "[START_DIR]/some other dir"
131 ],
132 "infra_step": true,
133 "name": "copy it"
134 },
135 {
136 "cmd": [
137 "python",
138 "-u",
139 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
140 "--json-output",
141 "/path/to/tmp/json",
142 "listdir",
143 "[START_DIR]/some other dir"
144 ],
145 "infra_step": true,
146 "name": "list new dir",
147 "stdout": "/path/to/tmp/"
148 },
149 {
150 "cmd": [
151 "python",
152 "-u",
153 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
154 "--json-output",
155 "/path/to/tmp/json",
156 "glob",
157 "[START_DIR]/some other dir/*a"
158 ],
159 "infra_step": true,
160 "name": "glob *a",
161 "stdout": "/path/to/tmp/"
162 },
163 {
164 "cmd": [
165 "python",
166 "-u",
167 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
168 "--json-output",
169 "/path/to/tmp/json",
170 "copy",
171 "[START_DIR]/some other dir/a",
172 "/path/to/tmp/"
173 ],
174 "infra_step": true,
175 "name": "read [START_DIR]/some other dir/a",
176 "timeout": 30
177 },
178 {
179 "cmd": [
180 "python",
181 "-u",
182 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
183 "--json-output",
184 "/path/to/tmp/json",
185 "copy",
186 "[START_DIR]/some other dir/aa",
187 "/path/to/tmp/"
188 ],
189 "infra_step": true,
190 "name": "read [START_DIR]/some other dir/aa",
191 "timeout": 30
192 },
193 {
194 "cmd": [
195 "python",
196 "-u",
197 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
198 "--json-output",
199 "/path/to/tmp/json",
200 "remove",
201 "[START_DIR]/some other dir/a"
202 ],
203 "infra_step": true,
204 "name": "rm a",
205 "timeout": 5
206 },
207 {
208 "cmd": [
209 "python",
210 "-u",
211 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
212 "--json-output",
213 "/path/to/tmp/json",
214 "glob",
215 "[START_DIR]/some other dir/*a"
216 ],
217 "infra_step": true,
218 "name": "glob *a (2)",
219 "stdout": "/path/to/tmp/"
220 },
221 {
222 "cmd": [
223 "python",
224 "-u",
225 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
226 "--json-output",
227 "/path/to/tmp/json",
228 "rmglob",
229 "[START_DIR]/some other dir",
230 "b*"
231 ],
232 "infra_step": true,
233 "name": "rm b*"
234 },
235 {
236 "cmd": [
237 "python",
238 "-u",
239 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
240 "--json-output",
241 "/path/to/tmp/json",
242 "listdir",
243 "[START_DIR]/some other dir"
244 ],
245 "infra_step": true,
246 "name": "list new dir (2)",
247 "stdout": "/path/to/tmp/"
248 },
249 {
250 "cmd": [
251 "python",
252 "-u",
253 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
254 "--json-output",
255 "/path/to/tmp/json",
256 "rmcontents",
257 "[START_DIR]/some other dir"
258 ],
259 "infra_step": true,
260 "name": "remove \"some other dir/*\""
261 },
262 {
263 "name": "$result",
264 "recipe_result": null,
265 "status_code": 0
266 }
267 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698