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

Unified Diff: recipe_modules/json/tests/add_json_log.expected/add_json_log.json

Issue 2989423002: Add add_json_log='on_failure' to json module. (Closed)
Patch Set: Add unittests Created 3 years, 4 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
« no previous file with comments | « recipe_modules/json/tests/add_json_log.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/json/tests/add_json_log.expected/add_json_log.json
diff --git a/recipe_modules/json/tests/add_json_log.expected/add_json_log.json b/recipe_modules/json/tests/add_json_log.expected/add_json_log.json
new file mode 100644
index 0000000000000000000000000000000000000000..82682b9b0b1c5e3f22a2f14c94421b9d944b69a3
--- /dev/null
+++ b/recipe_modules/json/tests/add_json_log.expected/add_json_log.json
@@ -0,0 +1,32 @@
+[
+ {
+ "cmd": [
+ "cat",
+ "{\"x\":1,\"y\":2}"
+ ],
+ "name": "no log on success",
+ "stdout": "/path/to/tmp/json"
+ },
+ {
+ "cmd": [
+ "cat",
+ "{\"x\":1,\"y\":2}"
+ ],
+ "name": "add log on failure",
+ "stdout": "/path/to/tmp/json",
+ "~followup_annotations": [
+ "step returned non-zero exit code: 1",
+ "@@@STEP_LOG_LINE@json.output[log2]@{@@@",
+ "@@@STEP_LOG_LINE@json.output[log2]@ \"x\": 1, @@@",
+ "@@@STEP_LOG_LINE@json.output[log2]@ \"y\": 2@@@",
+ "@@@STEP_LOG_LINE@json.output[log2]@}@@@",
+ "@@@STEP_LOG_END@json.output[log2]@@@",
+ "@@@STEP_FAILURE@@@"
+ ]
+ },
+ {
+ "name": "$result",
+ "recipe_result": null,
+ "status_code": 0
+ }
+]
« no previous file with comments | « recipe_modules/json/tests/add_json_log.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698