Index: scripts/slave/recipe_modules/bot_update/test_api.py |
diff --git a/scripts/slave/recipe_modules/bot_update/test_api.py b/scripts/slave/recipe_modules/bot_update/test_api.py |
index 013bfdb3a84f50556ff925a629011c51915f73b7..05d8671b6a4b499c9acef4a273fbf7946dcb2e67 100644 |
--- a/scripts/slave/recipe_modules/bot_update/test_api.py |
+++ b/scripts/slave/recipe_modules/bot_update/test_api.py |
@@ -72,6 +72,9 @@ class BotUpdateTestApi(recipe_test_api.RecipeTestApi): |
if fail_patch: |
output['log_lines'] = [('patch error', 'Patch failed to apply'),] |
output['patch_failure'] = True |
+ output['patch_apply_return_code'] = 1 |
+ if fail_patch == 'download': |
+ output['patch_apply_return_code'] = 3 |
return self.m.json.output(output) |
@staticmethod |