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

Side by Side Diff: recipe_modules/shutil/example.expected/basic.json

Issue 2141223002: Revert of shutil recipe_module: port chromium_utils rmtree implementation. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Patch Set: how about this? Created 4 years, 5 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
« no previous file with comments | « recipe_modules/shutil/api.py ('k') | recipe_modules/shutil/resources/__init__.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "python", 4 "python",
5 "-u", 5 "-u",
6 "\nimport os\nimport sys\nos.remove(sys.argv[1])\n", 6 "\nimport os\nimport sys\nos.remove(sys.argv[1])\n",
7 "bar" 7 "bar"
8 ], 8 ],
9 "name": "foo", 9 "name": "foo",
10 "~followup_annotations": [ 10 "~followup_annotations": [
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 "\nimport glob\nimport sys\nwith open(sys.argv[1], 'w') as f:\n f.write(' \\n'.join(glob.glob(sys.argv[2])))\n", 206 "\nimport glob\nimport sys\nwith open(sys.argv[1], 'w') as f:\n f.write(' \\n'.join(glob.glob(sys.argv[2])))\n",
207 "/path/to/tmp/", 207 "/path/to/tmp/",
208 "[TMP_BASE]/copytree_example_tmp/*" 208 "[TMP_BASE]/copytree_example_tmp/*"
209 ], 209 ],
210 "name": "glob" 210 "name": "glob"
211 }, 211 },
212 { 212 {
213 "cmd": [ 213 "cmd": [
214 "python", 214 "python",
215 "-u", 215 "-u",
216 "RECIPE_MODULE[recipe_engine::shutil]/resources/rmtree.py", 216 "\nimport shutil, sys\nshutil.rmtree(sys.argv[1])\n",
217 "[TMP_BASE]/copytree_example_tmp" 217 "[TMP_BASE]/copytree_example_tmp"
218 ], 218 ],
219 "name": "cleanup" 219 "name": "cleanup",
220 "~followup_annotations": [
221 "@@@STEP_LOG_LINE@python.inline@@@@",
222 "@@@STEP_LOG_LINE@python.inline@import shutil, sys@@@",
223 "@@@STEP_LOG_LINE@python.inline@shutil.rmtree(sys.argv[1])@@@",
224 "@@@STEP_LOG_END@python.inline@@@"
225 ]
220 }, 226 },
221 { 227 {
222 "cmd": [ 228 "cmd": [
223 "python", 229 "python",
224 "-u", 230 "-u",
225 "RECIPE_MODULE[recipe_engine::shutil]/resources/rmtree.py", 231 "\nimport shutil, sys\nshutil.rmtree(sys.argv[1])\n",
226 "[TMP_BASE]/copytree_example_tmp2" 232 "[TMP_BASE]/copytree_example_tmp2"
227 ], 233 ],
228 "name": "cleanup2" 234 "name": "cleanup2",
235 "~followup_annotations": [
236 "@@@STEP_LOG_LINE@python.inline@@@@",
237 "@@@STEP_LOG_LINE@python.inline@import shutil, sys@@@",
238 "@@@STEP_LOG_LINE@python.inline@shutil.rmtree(sys.argv[1])@@@",
239 "@@@STEP_LOG_END@python.inline@@@"
240 ]
229 }, 241 },
230 { 242 {
231 "name": "$result", 243 "name": "$result",
232 "recipe_result": null, 244 "recipe_result": null,
233 "status_code": 0 245 "status_code": 0
234 } 246 }
235 ] 247 ]
OLDNEW
« no previous file with comments | « recipe_modules/shutil/api.py ('k') | recipe_modules/shutil/resources/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698