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

Unified Diff: recipe_modules/raw_io/test_api.py

Issue 2249163006: raw_io: fix passing retcode in test_api.stream_output (Closed) Base URL: https://github.com/luci/recipes-py.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/raw_io/test_api.py
diff --git a/recipe_modules/raw_io/test_api.py b/recipe_modules/raw_io/test_api.py
index 05cc90b60dd6b414702ebb76e53beb78638777f4..858bc945f2f2a46c6e5f3f4d2295bf72979402e8 100644
--- a/recipe_modules/raw_io/test_api.py
+++ b/recipe_modules/raw_io/test_api.py
@@ -23,4 +23,6 @@ class RawIOTestApi(recipe_test_api.RecipeTestApi): # pragma: no cover
assert stream in ('stdout', 'stderr')
step_data = self.output(data, retcode=retcode, name=name)
setattr(ret, stream, step_data.unwrap_placeholder())
+ if retcode:
+ ret.retcode = retcode
return ret
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698