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 = [ |