Index: scripts/slave/recipe_modules/step/example.expected/exceptional.json |
diff --git a/scripts/slave/recipe_modules/step/example.expected/exceptional.json b/scripts/slave/recipe_modules/step/example.expected/exceptional.json |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3053bb9d52a2ba8c5779fc63740516e89a0ac0b9 |
--- /dev/null |
+++ b/scripts/slave/recipe_modules/step/example.expected/exceptional.json |
@@ -0,0 +1,79 @@ |
+[ |
+ { |
+ "cmd": [ |
+ "echo", |
+ "Hello World" |
+ ], |
+ "cwd": "[SLAVE_BUILD]", |
+ "name": "hello" |
+ }, |
+ { |
+ "cmd": [ |
+ "echo", |
+ "Why hello, there." |
+ ], |
+ "cwd": "[SLAVE_BUILD]", |
+ "name": "hello (2)" |
+ }, |
+ { |
+ "cmd": [ |
+ "bash", |
+ "-c", |
+ "echo Good bye, $friend." |
+ ], |
+ "cwd": "[SLAVE_BUILD]", |
+ "env": { |
+ "friend": "Darth Vader" |
+ }, |
+ "name": "goodbye" |
+ }, |
+ { |
+ "cmd": [ |
+ "bash", |
+ "-c", |
+ "exit 3" |
+ ], |
+ "cwd": "[SLAVE_BUILD]", |
+ "name": "anything is cool" |
+ }, |
+ { |
+ "cmd": [ |
+ "echo", |
+ "hello" |
+ ], |
+ "cwd": "[SLAVE_BUILD]", |
+ "name": "hello (3)", |
+ "~followup_annotations": [ |
+ "@@@STEP_LOG_LINE@the reason@The reason@@@", |
+ "@@@STEP_LOG_LINE@the reason@it failed@@@", |
+ "@@@STEP_LOG_END@the reason@@@", |
+ "@@@STEP_EXCEPTION@@@" |
+ ] |
+ }, |
+ { |
+ "cmd": [], |
+ "cwd": "[SLAVE_BUILD]", |
+ "name": "Just print stuff", |
+ "~followup_annotations": [ |
+ "@@@STEP_LOG_LINE@more@More stuff@@@", |
+ "@@@STEP_LOG_END@more@@@" |
+ ] |
+ }, |
+ { |
+ "cmd": [ |
+ "echo", |
+ "goodbye" |
+ ], |
+ "cwd": "[SLAVE_BUILD]", |
+ "name": "goodbye (2)", |
+ "~followup_annotations": [ |
+ "step returned non-zero exit code: 1", |
+ "@@@STEP_FAILURE@@@" |
+ ] |
+ }, |
+ { |
+ "name": "$final_result", |
+ "reason": "Uncaught Exception: ValueError('goodbye must exit 0!',)", |
+ "status_code": -1 |
+ } |
+] |