Index: scripts/slave/recipe_modules/step/example.expected/infra_failure.json |
diff --git a/scripts/slave/recipe_modules/step/example.expected/infra_failure.json b/scripts/slave/recipe_modules/step/example.expected/infra_failure.json |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0a244e24fe7c1502f53b0af6c8f7e6d69b2ba10f |
--- /dev/null |
+++ b/scripts/slave/recipe_modules/step/example.expected/infra_failure.json |
@@ -0,0 +1,118 @@ |
+[ |
+ { |
+ "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)" |
+ }, |
+ { |
+ "cmd": [ |
+ "echo", |
+ "testa" |
+ ], |
+ "cwd": "[SLAVE_BUILD]", |
+ "name": "testa" |
+ }, |
+ { |
+ "cmd": [ |
+ "echo", |
+ "testb" |
+ ], |
+ "cwd": "[SLAVE_BUILD]", |
+ "name": "testb" |
+ }, |
+ { |
+ "cmd": [ |
+ "echo", |
+ "cleaning", |
+ "up", |
+ "build" |
+ ], |
+ "cwd": "[SLAVE_BUILD]", |
+ "name": "cleanup", |
+ "~followup_annotations": [ |
+ "step returned non-zero exit code: 1", |
+ "@@@STEP_EXCEPTION@@@" |
+ ] |
+ }, |
+ { |
+ "cmd": [ |
+ "python", |
+ "test-wrapper.py", |
+ "-v", |
+ "--", |
+ "echo", |
+ "main", |
+ "application" |
+ ], |
+ "cwd": "[SLAVE_BUILD]", |
+ "name": "application" |
+ }, |
+ { |
+ "name": "$final_result", |
+ "reason": "Warning, robots approaching!", |
+ "status_code": 1 |
+ } |
+] |