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

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

Issue 2750793002: [json] improve output to get leak_to and better logging. (Closed)
Patch Set: Created 3 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
OLDNEW
1 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "echo", 4 "echo",
5 "[1, 2, 3]" 5 "[1, 2, 3]"
6 ], 6 ],
7 "name": "echo1", 7 "name": "echo1",
8 "stdout": "/path/to/tmp/json", 8 "stdout": "/path/to/tmp/json",
9 "~followup_annotations": [ 9 "~followup_annotations": [
10 "@@@STEP_LOG_LINE@json.output@[@@@", 10 "@@@STEP_LOG_LINE@json.output@[@@@",
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 "name": "read json from file we just wrote", 97 "name": "read json from file we just wrote",
98 "~followup_annotations": [ 98 "~followup_annotations": [
99 "@@@STEP_LOG_LINE@json.output@{@@@", 99 "@@@STEP_LOG_LINE@json.output@{@@@",
100 "@@@STEP_LOG_LINE@json.output@ \"x\": 1, @@@", 100 "@@@STEP_LOG_LINE@json.output@ \"x\": 1, @@@",
101 "@@@STEP_LOG_LINE@json.output@ \"y\": 2@@@", 101 "@@@STEP_LOG_LINE@json.output@ \"y\": 2@@@",
102 "@@@STEP_LOG_LINE@json.output@}@@@", 102 "@@@STEP_LOG_LINE@json.output@}@@@",
103 "@@@STEP_LOG_END@json.output@@@" 103 "@@@STEP_LOG_END@json.output@@@"
104 ] 104 ]
105 }, 105 },
106 { 106 {
107 "cmd": [
108 "python",
109 "cool_script.py",
110 "[TMP_BASE]/leak.json"
111 ],
112 "name": "leaking json",
113 "~followup_annotations": [
114 "@@@STEP_LOG_LINE@json.output@{@@@",
115 "@@@STEP_LOG_LINE@json.output@ \"x\": 1, @@@",
116 "@@@STEP_LOG_LINE@json.output@ \"y\": 2@@@",
117 "@@@STEP_LOG_LINE@json.output@}@@@",
118 "@@@STEP_LOG_END@json.output@@@"
119 ]
120 },
121 {
122 "cmd": [
123 "python",
124 "garbage.py",
125 "/path/to/tmp/json"
126 ],
127 "name": "invalid json",
128 "~followup_annotations": [
129 "@@@STEP_LOG_LINE@json.output (invalid)@here is some total@@@",
130 "@@@STEP_LOG_LINE@json.output (invalid)@garbage@@@",
131 "@@@STEP_LOG_END@json.output (invalid)@@@"
132 ]
133 },
134 {
107 "name": "$result", 135 "name": "$result",
108 "recipe_result": null, 136 "recipe_result": null,
109 "status_code": 0 137 "status_code": 0
110 } 138 }
111 ] 139 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698