Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(559)

Unified Diff: scripts/slave/recipe_modules/filter/example.py

Issue 448343002: Makes filter step continue on if error (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: --no-find-copies Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipe_modules/filter/example.py
diff --git a/scripts/slave/recipe_modules/filter/example.py b/scripts/slave/recipe_modules/filter/example.py
index c1388a98c32a06ed6b91e649c030f861420b78d1..a8764b1a859c9ee50f08044d8b7bfae16106e0ad 100644
--- a/scripts/slave/recipe_modules/filter/example.py
+++ b/scripts/slave/recipe_modules/filter/example.py
@@ -76,3 +76,12 @@ def GenTests(api):
api.override_step_data(
'analyze',
api.json.output({'error': 'ERROR'})))
+
+ # Analyze with python returning bad status.
+ yield (api.test('bad_retcode_doesnt_fail') +
+ api.properties(matching_exes=None) +
+ api.properties(example_matching_exes=None) +
+ api.properties(example_result=1) +
+ api.step_data(
+ 'analyze',
+ retcode=-1))

Powered by Google App Engine
This is Rietveld 408576698