Merge "Capture output from test run of policy generator"

This commit is contained in:
Zuul 2020-02-19 08:36:19 +00:00 committed by Gerrit Code Review
commit e795b05ac8
1 changed files with 2 additions and 2 deletions

View File

@ -242,5 +242,5 @@ class GeneratePolicyFileTestCase(unit.TestCase):
stdout=subprocess.PIPE,
stderr=subprocess.PIPE
)
ret_val.communicate()
self.assertEqual(ret_val.returncode, 0)
output = ret_val.communicate()
self.assertEqual(ret_val.returncode, 0, output)