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

Unified Diff: recipe_modules/json/example.expected/basic.json

Issue 2768883004: json: Improve error handling and adding ability to limit log output.
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 side-by-side diff with in-line comments
Download patch
Index: recipe_modules/json/example.expected/basic.json
diff --git a/recipe_modules/json/example.expected/basic.json b/recipe_modules/json/example.expected/basic.json
index 613adfac52c2641f99182bb20499182392c7cbaa..f62ad30d3f6446c326a9eef245ee569bb6aa0951 100644
--- a/recipe_modules/json/example.expected/basic.json
+++ b/recipe_modules/json/example.expected/basic.json
@@ -128,11 +128,41 @@
],
"name": "invalid json",
"~followup_annotations": [
- "@@@STEP_LOG_LINE@json.output (invalid)@{\"here is some total@@@",
- "@@@STEP_LOG_LINE@json.output (invalid)@garbage@@@",
- "@@@STEP_LOG_END@json.output (invalid)@@@",
+ "@@@STEP_LOG_LINE@json.output (exception)@input was invalid@@@",
"@@@STEP_LOG_LINE@json.output (exception)@Invalid control character at: line 1 column 21 (char 20)@@@",
- "@@@STEP_LOG_END@json.output (exception)@@@"
+ "@@@STEP_LOG_END@json.output (exception)@@@",
+ "@@@STEP_LOG_LINE@json.output@{\"here is some total@@@",
+ "@@@STEP_LOG_LINE@json.output@garbage@@@",
+ "@@@STEP_LOG_END@json.output@@@"
+ ]
+ },
+ {
+ "cmd": [
+ "python",
+ "RECIPE[recipe_engine::json:example].resources/cool_script.py",
+ "",
+ "/path/to/tmp/json"
+ ],
+ "name": "empty json",
+ "~followup_annotations": [
+ "@@@STEP_LOG_LINE@json.output (exception)@input was empty@@@",
+ "@@@STEP_LOG_LINE@json.output (exception)@No JSON object could be decoded@@@",
+ "@@@STEP_LOG_END@json.output (exception)@@@",
+ "@@@STEP_LOG_END@json.output@@@"
+ ]
+ },
+ {
+ "cmd": [
+ "python",
+ "RECIPE[recipe_engine::json:example].resources/cool_script.py",
+ "/path/to/tmp/json"
+ ],
+ "name": "None json",
+ "~followup_annotations": [
+ "@@@STEP_LOG_LINE@json.output (exception)@input was empty@@@",
+ "@@@STEP_LOG_LINE@json.output (exception)@No JSON object could be decoded@@@",
+ "@@@STEP_LOG_END@json.output (exception)@@@",
+ "@@@STEP_LOG_END@json.output@@@"
]
},
{

Powered by Google App Engine
This is Rietveld 408576698