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

Side by Side Diff: scripts/slave/recipe_modules/file/example.expected/file_io.json

Issue 1919193002: build: roll infra_paths changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: merge Created 4 years, 8 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 | Annotate | Revision Log
OLDNEW
1 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "python", 4 "python",
5 "-u", 5 "-u",
6 "\nimport json, os, sys\nif os.path.exists(sys.argv[1]) and os.path.isdir( sys.argv[1]):\n with open(sys.argv[2], 'w') as f:\n json.dump(os.listdir(sys .argv[1]), f)\n", 6 "\nimport json, os, sys\nif os.path.exists(sys.argv[1]) and os.path.isdir( sys.argv[1]):\n with open(sys.argv[2], 'w') as f:\n json.dump(os.listdir(sys .argv[1]), f)\n",
7 "/fake/dir", 7 "/fake/dir",
8 "/path/to/tmp/json" 8 "/path/to/tmp/json"
9 ], 9 ],
10 "cwd": "[SLAVE_BUILD]",
11 "name": "listdir fake dir", 10 "name": "listdir fake dir",
12 "~followup_annotations": [ 11 "~followup_annotations": [
13 "@@@STEP_LOG_LINE@json.output@[@@@", 12 "@@@STEP_LOG_LINE@json.output@[@@@",
14 "@@@STEP_LOG_LINE@json.output@ \"file 1\", @@@", 13 "@@@STEP_LOG_LINE@json.output@ \"file 1\", @@@",
15 "@@@STEP_LOG_LINE@json.output@ \"file 2\"@@@", 14 "@@@STEP_LOG_LINE@json.output@ \"file 2\"@@@",
16 "@@@STEP_LOG_LINE@json.output@]@@@", 15 "@@@STEP_LOG_LINE@json.output@]@@@",
17 "@@@STEP_LOG_END@json.output@@@", 16 "@@@STEP_LOG_END@json.output@@@",
18 "@@@STEP_LOG_LINE@python.inline@@@@", 17 "@@@STEP_LOG_LINE@python.inline@@@@",
19 "@@@STEP_LOG_LINE@python.inline@import json, os, sys@@@", 18 "@@@STEP_LOG_LINE@python.inline@import json, os, sys@@@",
20 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]) and os.path .isdir(sys.argv[1]):@@@", 19 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]) and os.path .isdir(sys.argv[1]):@@@",
21 "@@@STEP_LOG_LINE@python.inline@ with open(sys.argv[2], 'w') as f:@@@", 20 "@@@STEP_LOG_LINE@python.inline@ with open(sys.argv[2], 'w') as f:@@@",
22 "@@@STEP_LOG_LINE@python.inline@ json.dump(os.listdir(sys.argv[1]), f)@ @@", 21 "@@@STEP_LOG_LINE@python.inline@ json.dump(os.listdir(sys.argv[1]), f)@ @@",
23 "@@@STEP_LOG_END@python.inline@@@" 22 "@@@STEP_LOG_END@python.inline@@@"
24 ] 23 ]
25 }, 24 },
26 { 25 {
27 "cmd": [ 26 "cmd": [
28 "some", 27 "some",
29 "command" 28 "command"
30 ], 29 ],
31 "cwd": "[SLAVE_BUILD]",
32 "name": "manipulate file 1" 30 "name": "manipulate file 1"
33 }, 31 },
34 { 32 {
35 "cmd": [ 33 "cmd": [
36 "some", 34 "some",
37 "command" 35 "command"
38 ], 36 ],
39 "cwd": "[SLAVE_BUILD]",
40 "name": "manipulate file 2" 37 "name": "manipulate file 2"
41 }, 38 },
42 { 39 {
43 "cmd": [ 40 "cmd": [
44 "echo", 41 "echo",
45 "[TMP_BASE]/prefix_a_tmp_1" 42 "[TMP]/prefix_a_tmp_1"
46 ], 43 ],
47 "cwd": "[SLAVE_BUILD]",
48 "name": "print prefix_a" 44 "name": "print prefix_a"
49 }, 45 },
50 { 46 {
51 "cmd": [ 47 "cmd": [
52 "echo", 48 "echo",
53 "[TMP_BASE]/prefix_b_tmp_2" 49 "[TMP]/prefix_b_tmp_2"
54 ], 50 ],
55 "cwd": "[SLAVE_BUILD]",
56 "name": "print prefix_b" 51 "name": "print prefix_b"
57 }, 52 },
58 { 53 {
59 "cmd": [ 54 "cmd": [
60 "python", 55 "python",
61 "-u", 56 "-u",
62 "\nimport sys\nfrom common import chromium_utils # Error? See https://crbu g.com/584783.\n\nchromium_utils.RemoveFilesWildcards(sys.argv[1], root=sys.argv[ 2])\n", 57 "\nimport sys\nfrom common import chromium_utils # Error? See https://crbu g.com/584783.\n\nchromium_utils.RemoveFilesWildcards(sys.argv[1], root=sys.argv[ 2])\n",
63 "*.o", 58 "*.o",
64 "[SLAVE_BUILD]" 59 "[CWD]"
65 ], 60 ],
66 "cwd": "[SLAVE_BUILD]", 61 "name": "rmwildcard *.o in [CWD]",
67 "name": "rmwildcard *.o in [SLAVE_BUILD]",
68 "~followup_annotations": [ 62 "~followup_annotations": [
69 "@@@STEP_LOG_LINE@python.inline@@@@", 63 "@@@STEP_LOG_LINE@python.inline@@@@",
70 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 64 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
71 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error? See https://crbug.com/584783.@@@", 65 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error? See https://crbug.com/584783.@@@",
72 "@@@STEP_LOG_LINE@python.inline@@@@", 66 "@@@STEP_LOG_LINE@python.inline@@@@",
73 "@@@STEP_LOG_LINE@python.inline@chromium_utils.RemoveFilesWildcards(sys.ar gv[1], root=sys.argv[2])@@@", 67 "@@@STEP_LOG_LINE@python.inline@chromium_utils.RemoveFilesWildcards(sys.ar gv[1], root=sys.argv[2])@@@",
74 "@@@STEP_LOG_END@python.inline@@@" 68 "@@@STEP_LOG_END@python.inline@@@"
75 ] 69 ]
76 }, 70 },
77 { 71 {
78 "cmd": [ 72 "cmd": [
79 "python", 73 "python",
80 "-u", 74 "-u",
81 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", 75 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
82 "abcde", 76 "abcde",
83 "tmp_file.txt" 77 "tmp_file.txt"
84 ], 78 ],
85 "cwd": "[SLAVE_BUILD]",
86 "name": "write_simple" 79 "name": "write_simple"
87 }, 80 },
88 { 81 {
89 "cmd": [ 82 "cmd": [
90 "python", 83 "python",
91 "-u", 84 "-u",
92 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", 85 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
93 "tmp_file.txt", 86 "tmp_file.txt",
94 "/path/to/tmp/" 87 "/path/to/tmp/"
95 ], 88 ],
96 "cwd": "[SLAVE_BUILD]",
97 "name": "read_simple" 89 "name": "read_simple"
98 }, 90 },
99 { 91 {
100 "cmd": [ 92 "cmd": [
101 "python", 93 "python",
102 "-u", 94 "-u",
103 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", 95 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
104 "! ~&&", 96 "! ~&&",
105 "tmp_file.txt" 97 "tmp_file.txt"
106 ], 98 ],
107 "cwd": "[SLAVE_BUILD]",
108 "name": "write_symbols" 99 "name": "write_symbols"
109 }, 100 },
110 { 101 {
111 "cmd": [ 102 "cmd": [
112 "python", 103 "python",
113 "-u", 104 "-u",
114 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", 105 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
115 "tmp_file.txt", 106 "tmp_file.txt",
116 "/path/to/tmp/" 107 "/path/to/tmp/"
117 ], 108 ],
118 "cwd": "[SLAVE_BUILD]",
119 "name": "read_symbols" 109 "name": "read_symbols"
120 }, 110 },
121 { 111 {
122 "cmd": [ 112 "cmd": [
123 "python", 113 "python",
124 "-u", 114 "-u",
125 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", 115 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
126 "abcde fgh", 116 "abcde fgh",
127 "tmp_file.txt" 117 "tmp_file.txt"
128 ], 118 ],
129 "cwd": "[SLAVE_BUILD]",
130 "name": "write_spaces" 119 "name": "write_spaces"
131 }, 120 },
132 { 121 {
133 "cmd": [ 122 "cmd": [
134 "python", 123 "python",
135 "-u", 124 "-u",
136 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", 125 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
137 "tmp_file.txt", 126 "tmp_file.txt",
138 "/path/to/tmp/" 127 "/path/to/tmp/"
139 ], 128 ],
140 "cwd": "[SLAVE_BUILD]",
141 "name": "read_spaces" 129 "name": "read_spaces"
142 }, 130 },
143 { 131 {
144 "cmd": [ 132 "cmd": [
145 "python", 133 "python",
146 "-u", 134 "-u",
147 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", 135 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
148 "ab\ncd\nefg\n", 136 "ab\ncd\nefg\n",
149 "tmp_file.txt" 137 "tmp_file.txt"
150 ], 138 ],
151 "cwd": "[SLAVE_BUILD]",
152 "name": "write_multiline" 139 "name": "write_multiline"
153 }, 140 },
154 { 141 {
155 "cmd": [ 142 "cmd": [
156 "python", 143 "python",
157 "-u", 144 "-u",
158 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", 145 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
159 "tmp_file.txt", 146 "tmp_file.txt",
160 "/path/to/tmp/" 147 "/path/to/tmp/"
161 ], 148 ],
162 "cwd": "[SLAVE_BUILD]",
163 "name": "read_multiline" 149 "name": "read_multiline"
164 }, 150 },
165 { 151 {
166 "cmd": [ 152 "cmd": [
167 "python", 153 "python",
168 "-u", 154 "-u",
169 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os. path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", 155 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os. path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n",
170 "[SLAVE_BUILD]/copytree_example_tmp", 156 "[CWD]/copytree_example_tmp",
171 "511" 157 "511"
172 ], 158 ],
173 "cwd": "[SLAVE_BUILD]",
174 "name": "makedirs makedirs", 159 "name": "makedirs makedirs",
175 "~followup_annotations": [ 160 "~followup_annotations": [
176 "@@@STEP_LOG_LINE@python.inline@@@@", 161 "@@@STEP_LOG_LINE@python.inline@@@@",
177 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", 162 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
178 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", 163 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
179 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", 164 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
180 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", 165 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
181 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", 166 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
182 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@", 167 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
183 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", 168 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
184 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", 169 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
185 "@@@STEP_LOG_END@python.inline@@@" 170 "@@@STEP_LOG_END@python.inline@@@"
186 ] 171 ]
187 }, 172 },
188 { 173 {
189 "cmd": [ 174 "cmd": [
190 "python", 175 "python",
191 "-u", 176 "-u",
192 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", 177 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
193 "some file content", 178 "some file content",
194 "[SLAVE_BUILD]/copytree_example_tmp/dummy_file" 179 "[CWD]/copytree_example_tmp/dummy_file"
195 ], 180 ],
196 "cwd": "[SLAVE_BUILD]", 181 "name": "write [CWD]/copytree_example_tmp/dummy_file"
197 "name": "write [SLAVE_BUILD]/copytree_example_tmp/dummy_file"
198 }, 182 },
199 { 183 {
200 "cmd": [ 184 "cmd": [
201 "python", 185 "python",
202 "-u", 186 "-u",
203 "\nimport shutil\nimport sys\nshutil.copytree(sys.argv[1], sys.argv[2], sy mlinks=bool(sys.argv[3]))\n", 187 "\nimport shutil\nimport sys\nshutil.copytree(sys.argv[1], sys.argv[2], sy mlinks=bool(sys.argv[3]))\n",
204 "[SLAVE_BUILD]/copytree_example_tmp", 188 "[CWD]/copytree_example_tmp",
205 "[SLAVE_BUILD]/copytree_example_tmp2", 189 "[CWD]/copytree_example_tmp2",
206 "0" 190 "0"
207 ], 191 ],
208 "cwd": "[SLAVE_BUILD]",
209 "name": "copytree" 192 "name": "copytree"
210 }, 193 },
211 { 194 {
212 "cmd": [ 195 "cmd": [
213 "python", 196 "python",
214 "-u", 197 "-u",
215 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", 198 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
216 "[SLAVE_BUILD]/copytree_example_tmp2/dummy_file", 199 "[CWD]/copytree_example_tmp2/dummy_file",
217 "/path/to/tmp/" 200 "/path/to/tmp/"
218 ], 201 ],
219 "cwd": "[SLAVE_BUILD]", 202 "name": "read [CWD]/copytree_example_tmp2/dummy_file"
220 "name": "read [SLAVE_BUILD]/copytree_example_tmp2/dummy_file"
221 }, 203 },
222 { 204 {
223 "cmd": [ 205 "cmd": [
224 "python", 206 "python",
225 "-u", 207 "-u",
226 "\nimport glob\nimport sys\nwith open(sys.argv[1], 'w') as f:\n f.write(' \\n'.join(glob.glob(sys.argv[2])))\n", 208 "\nimport glob\nimport sys\nwith open(sys.argv[1], 'w') as f:\n f.write(' \\n'.join(glob.glob(sys.argv[2])))\n",
227 "/path/to/tmp/", 209 "/path/to/tmp/",
228 "[SLAVE_BUILD]/copytree_example_tmp/*" 210 "[CWD]/copytree_example_tmp/*"
229 ], 211 ],
230 "cwd": "[SLAVE_BUILD]",
231 "name": "glob" 212 "name": "glob"
232 }, 213 },
233 { 214 {
234 "cmd": [ 215 "cmd": [
235 "python", 216 "python",
236 "-u", 217 "-u",
237 "\nimport os, sys\nfrom common import chromium_utils # Error? See https:// crbug.com/584783.\n\n\nif os.path.exists(sys.argv[1]):\n chromium_utils.RemoveD irectory(sys.argv[1])\n", 218 "\nimport os, sys\nfrom common import chromium_utils # Error? See https:// crbug.com/584783.\n\n\nif os.path.exists(sys.argv[1]):\n chromium_utils.RemoveD irectory(sys.argv[1])\n",
238 "[SLAVE_BUILD]/copytree_example_tmp" 219 "[CWD]/copytree_example_tmp"
239 ], 220 ],
240 "cwd": "[SLAVE_BUILD]",
241 "name": "rmtree cleanup", 221 "name": "rmtree cleanup",
242 "~followup_annotations": [ 222 "~followup_annotations": [
243 "@@@STEP_LOG_LINE@python.inline@@@@", 223 "@@@STEP_LOG_LINE@python.inline@@@@",
244 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", 224 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
245 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error? See https://crbug.com/584783.@@@", 225 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error? See https://crbug.com/584783.@@@",
246 "@@@STEP_LOG_LINE@python.inline@@@@", 226 "@@@STEP_LOG_LINE@python.inline@@@@",
247 "@@@STEP_LOG_LINE@python.inline@@@@", 227 "@@@STEP_LOG_LINE@python.inline@@@@",
248 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@", 228 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@",
249 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@", 229 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@",
250 "@@@STEP_LOG_END@python.inline@@@" 230 "@@@STEP_LOG_END@python.inline@@@"
251 ] 231 ]
252 }, 232 },
253 { 233 {
254 "cmd": [ 234 "cmd": [
255 "python", 235 "python",
256 "-u", 236 "-u",
257 "\nimport os, sys\nfrom common import chromium_utils # Error? See https:// crbug.com/584783.\n\n\nif os.path.exists(sys.argv[1]):\n chromium_utils.RemoveD irectory(sys.argv[1])\n", 237 "\nimport os, sys\nfrom common import chromium_utils # Error? See https:// crbug.com/584783.\n\n\nif os.path.exists(sys.argv[1]):\n chromium_utils.RemoveD irectory(sys.argv[1])\n",
258 "[SLAVE_BUILD]/copytree_example_tmp2" 238 "[CWD]/copytree_example_tmp2"
259 ], 239 ],
260 "cwd": "[SLAVE_BUILD]",
261 "name": "rmtree cleanup2", 240 "name": "rmtree cleanup2",
262 "~followup_annotations": [ 241 "~followup_annotations": [
263 "@@@STEP_LOG_LINE@python.inline@@@@", 242 "@@@STEP_LOG_LINE@python.inline@@@@",
264 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", 243 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
265 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error? See https://crbug.com/584783.@@@", 244 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error? See https://crbug.com/584783.@@@",
266 "@@@STEP_LOG_LINE@python.inline@@@@", 245 "@@@STEP_LOG_LINE@python.inline@@@@",
267 "@@@STEP_LOG_LINE@python.inline@@@@", 246 "@@@STEP_LOG_LINE@python.inline@@@@",
268 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@", 247 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@",
269 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@", 248 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@",
270 "@@@STEP_LOG_END@python.inline@@@" 249 "@@@STEP_LOG_END@python.inline@@@"
271 ] 250 ]
272 }, 251 },
273 { 252 {
274 "name": "$result", 253 "name": "$result",
275 "recipe_result": null, 254 "recipe_result": null,
276 "status_code": 0 255 "status_code": 0
277 } 256 }
278 ] 257 ]
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/file/example.py ('k') | scripts/slave/recipe_modules/filter/example.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698