[
  {
    "cmd": [
      "svn",
      "export",
      "--force",
      "svn://checkout.url",
      "/path/to/tmp/diff"
    ],
    "cwd": "[SLAVE_BUILD]",
    "name": "download patch",
    "~followup_annotations": [
      "@@@STEP_LOG_LINE@patch.diff@fake patch.diff content (line 1)@@@",
      "@@@STEP_LOG_LINE@patch.diff@fake patch.diff content (line 2)@@@",
      "@@@STEP_LOG_LINE@patch.diff@@@@",
      "@@@STEP_LOG_END@patch.diff@@@"
    ]
  },
  {
    "cmd": [
      "patch",
      "--dir",
      "[SLAVE_BUILD]",
      "--force",
      "--forward",
      "--remove-empty-files",
      "--strip",
      "0"
    ],
    "cwd": "[SLAVE_BUILD]",
    "name": "apply patch",
    "stdin": "fake patch.diff content (line 1)\nfake patch.diff content (line 2)\n"
  },
  {
    "cmd": [
      "git",
      "diff",
      "--cached",
      "--name-only"
    ],
    "cwd": "[SLAVE_BUILD]",
    "name": "git diff to analyze patch",
    "stdout": "/path/to/tmp/",
    "~followup_annotations": [
      "@@@STEP_LOG_LINE@files@foo.cc@@@",
      "@@@STEP_LOG_END@files@@@",
      "@@@SET_BUILD_PROPERTY@failure_type@\"INVALID_TEST_RESULTS\"@@@",
      "@@@SET_BUILD_PROPERTY@subproject_tag@\"v8\"@@@"
    ]
  },
  {
    "cmd": [
      "python",
      "-u",
      "import sys; sys.exit(1)"
    ],
    "cwd": "[SLAVE_BUILD]",
    "name": "fail",
    "~followup_annotations": [
      "step returned non-zero exit code: 1",
      "@@@STEP_TEXT@foo@@@",
      "@@@STEP_FAILURE@@@",
      "@@@SET_BUILD_PROPERTY@failure_hash@\"c2311ad770732eade3d2f48247abd147e40a70e7\"@@@"
    ]
  },
  {
    "name": "$result",
    "reason": "Step('fail') failed with return_code 1",
    "status_code": 1
  }
]