Merge "Capture XML output from test"

This commit is contained in:
Zuul 2018-03-07 15:23:08 +00:00 committed by Gerrit Code Review
commit 5e023d0301
1 changed files with 3 additions and 1 deletions

View File

@ -58,7 +58,9 @@ class TestTests(CmdTestsBase):
os.path.join(self.fixtures_path,
'cmd-001.yaml'),
'foo-job']
self.execute_jenkins_jobs_with_args(args)
console_out = io.BytesIO()
with mock.patch('sys.stdout', console_out):
self.execute_jenkins_jobs_with_args(args)
def test_console_output(self):
"""