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

Unified Diff: recipe_engine/unittests/run_test.py

Issue 2875823002: Add vpython support to Python recipe module. (Closed)
Patch Set: rebase Created 3 years, 7 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 | recipe_modules/python/api.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_engine/unittests/run_test.py
diff --git a/recipe_engine/unittests/run_test.py b/recipe_engine/unittests/run_test.py
index 00e1a0106b699744b92a3f86a7a6aff2e37c5498..07ec36fc2e97c4b0a694f0b0b82d009e3acd1b6a 100755
--- a/recipe_engine/unittests/run_test.py
+++ b/recipe_engine/unittests/run_test.py
@@ -46,10 +46,12 @@ class RunTest(unittest.TestCase):
def _test_recipe(self, recipe, properties=None):
proc = subprocess.Popen(
- self._run_cmd(recipe, properties), stdout=subprocess.PIPE)
- proc.communicate()
- self.assertEqual(0, proc.returncode, '%d != %d when testing %s' % (
- 0, proc.returncode, recipe))
+ self._run_cmd(recipe, properties),
+ stdout=subprocess.PIPE,
+ stderr=subprocess.STDOUT)
+ stdout = proc.communicate()
+ self.assertEqual(0, proc.returncode, '%d != %d when testing %s:\n%s' % (
+ 0, proc.returncode, recipe, stdout))
def test_examples(self):
tests = [
« no previous file with comments | « no previous file | recipe_modules/python/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698