| Index: scripts/slave/recipe_modules/step/example.expected/defer_results.json
|
| diff --git a/scripts/slave/recipe_modules/step/example.expected/defer_results.json b/scripts/slave/recipe_modules/step/example.expected/defer_results.json
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0e98b14fde36479f5fb1b7f56825aa1d73d21b76
|
| --- /dev/null
|
| +++ b/scripts/slave/recipe_modules/step/example.expected/defer_results.json
|
| @@ -0,0 +1,95 @@
|
| +[
|
| + {
|
| + "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",
|
| + "~followup_annotations": [
|
| + "step returned non-zero exit code: 1",
|
| + "@@@STEP_FAILURE@@@"
|
| + ]
|
| + },
|
| + {
|
| + "cmd": [
|
| + "echo",
|
| + "testb"
|
| + ],
|
| + "cwd": "[SLAVE_BUILD]",
|
| + "name": "testb"
|
| + },
|
| + {
|
| + "name": "$final_result",
|
| + "reason": "You can catch step failures.",
|
| + "status_code": 1
|
| + }
|
| +]
|
|
|