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

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

Issue 1773273003: Make output placeholders like json.output index-able by name. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Patch Set: Rebase. Created 4 years, 9 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/json/example.py ('k') | recipe_modules/json/test_api.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 "echo", 4 "echo",
5 "[1, 2, 3]" 5 "[1, 2, 3]"
6 ], 6 ],
7 "cwd": "[SLAVE_BUILD]", 7 "cwd": "[SLAVE_BUILD]",
8 "name": "echo1", 8 "name": "echo1",
9 "stdout": "/path/to/tmp/json", 9 "stdout": "/path/to/tmp/json",
10 "~followup_annotations": [ 10 "~followup_annotations": [
(...skipping 26 matching lines...) Expand all
37 "cmd": [ 37 "cmd": [
38 "python", 38 "python",
39 "-u", 39 "-u",
40 "\nimport json\nimport sys\nwith open(sys.argv[1], 'w') as f:\n f.write(j son.dumps([1, 2, 3]))\nwith open(sys.argv[2], 'w') as f:\n f.write(json.dumps([ 'x', 'y', u'\\ufeff\\uff5a']))\n", 40 "\nimport json\nimport sys\nwith open(sys.argv[1], 'w') as f:\n f.write(j son.dumps([1, 2, 3]))\nwith open(sys.argv[2], 'w') as f:\n f.write(json.dumps([ 'x', 'y', u'\\ufeff\\uff5a']))\n",
41 "/path/to/tmp/json", 41 "/path/to/tmp/json",
42 "/path/to/tmp/json" 42 "/path/to/tmp/json"
43 ], 43 ],
44 "cwd": "[SLAVE_BUILD]", 44 "cwd": "[SLAVE_BUILD]",
45 "name": "foo", 45 "name": "foo",
46 "~followup_annotations": [ 46 "~followup_annotations": [
47 "@@@STEP_LOG_LINE@json.output@[@@@", 47 "@@@STEP_LOG_LINE@json.output[1]@[@@@",
48 "@@@STEP_LOG_LINE@json.output@ \"x\", @@@", 48 "@@@STEP_LOG_LINE@json.output[1]@ 1, @@@",
49 "@@@STEP_LOG_LINE@json.output@ \"y\", @@@", 49 "@@@STEP_LOG_LINE@json.output[1]@ 2, @@@",
50 "@@@STEP_LOG_LINE@json.output@ \"\\ufeff\\uff5a\"@@@", 50 "@@@STEP_LOG_LINE@json.output[1]@ 3@@@",
51 "@@@STEP_LOG_LINE@json.output@]@@@", 51 "@@@STEP_LOG_LINE@json.output[1]@]@@@",
52 "@@@STEP_LOG_END@json.output@@@", 52 "@@@STEP_LOG_END@json.output[1]@@@",
53 "@@@STEP_LOG_LINE@json.output[2]@[@@@",
54 "@@@STEP_LOG_LINE@json.output[2]@ \"x\", @@@",
55 "@@@STEP_LOG_LINE@json.output[2]@ \"y\", @@@",
56 "@@@STEP_LOG_LINE@json.output[2]@ \"\\ufeff\\uff5a\"@@@",
57 "@@@STEP_LOG_LINE@json.output[2]@]@@@",
58 "@@@STEP_LOG_END@json.output[2]@@@",
53 "@@@STEP_LOG_LINE@python.inline@@@@", 59 "@@@STEP_LOG_LINE@python.inline@@@@",
54 "@@@STEP_LOG_LINE@python.inline@import json@@@", 60 "@@@STEP_LOG_LINE@python.inline@import json@@@",
55 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 61 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
56 "@@@STEP_LOG_LINE@python.inline@with open(sys.argv[1], 'w') as f:@@@", 62 "@@@STEP_LOG_LINE@python.inline@with open(sys.argv[1], 'w') as f:@@@",
57 "@@@STEP_LOG_LINE@python.inline@ f.write(json.dumps([1, 2, 3]))@@@", 63 "@@@STEP_LOG_LINE@python.inline@ f.write(json.dumps([1, 2, 3]))@@@",
58 "@@@STEP_LOG_LINE@python.inline@with open(sys.argv[2], 'w') as f:@@@", 64 "@@@STEP_LOG_LINE@python.inline@with open(sys.argv[2], 'w') as f:@@@",
59 "@@@STEP_LOG_LINE@python.inline@ f.write(json.dumps(['x', 'y', u'\\ufeff\ \uff5a']))@@@", 65 "@@@STEP_LOG_LINE@python.inline@ f.write(json.dumps(['x', 'y', u'\\ufeff\ \uff5a']))@@@",
60 "@@@STEP_LOG_END@python.inline@@@" 66 "@@@STEP_LOG_END@python.inline@@@"
61 ] 67 ]
62 }, 68 },
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 "@@@STEP_LOG_LINE@json.output@}@@@", 108 "@@@STEP_LOG_LINE@json.output@}@@@",
103 "@@@STEP_LOG_END@json.output@@@" 109 "@@@STEP_LOG_END@json.output@@@"
104 ] 110 ]
105 }, 111 },
106 { 112 {
107 "name": "$result", 113 "name": "$result",
108 "recipe_result": null, 114 "recipe_result": null,
109 "status_code": 0 115 "status_code": 0
110 } 116 }
111 ] 117 ]
OLDNEW
« no previous file with comments | « recipe_modules/json/example.py ('k') | recipe_modules/json/test_api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698