| Index: recipe_engine/unittests/run_test.py
|
| diff --git a/recipe_engine/unittests/run_test.py b/recipe_engine/unittests/run_test.py
|
| index 5e59495253504d49df0dec555bd55c3ab893d704..0ccc8bd53e48ec745a77d00704c2e592da85ed33 100755
|
| --- a/recipe_engine/unittests/run_test.py
|
| +++ b/recipe_engine/unittests/run_test.py
|
| @@ -45,9 +45,11 @@ 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))
|
| + stdout, stderr = proc.communicate()
|
| + self.assertEqual(
|
| + 0, proc.returncode,
|
| + ('%d != %d when testing %s\nstdout: %s\nstderr: %s' % (
|
| + 0, proc.returncode, recipe, stdout, stderr)))
|
|
|
| def test_examples(self):
|
| tests = [
|
| @@ -74,7 +76,6 @@ class RunTest(unittest.TestCase):
|
| # If this takes longer than 5 seconds to run, we consider it failed.
|
| self.assertLess(after - now, 5)
|
|
|
| -
|
| def test_nonexistent_command(self):
|
| subp = subprocess.Popen(
|
| self._run_cmd('engine_tests/nonexistent_command'),
|
|
|