Change test prints to log.info
printing to stdout gets output even on success (hopefully we'll figure that out as well) but logging only gets output on failure. Transition these calls to log.info so that we don't lose the data but so that it's not printed in normal operation. Change-Id: Ib1b98cfa16cab256d6f79d8fe425db0bab2a845f
This commit is contained in:
parent
34abd1d83d
commit
8cbac7d0bf
|
@ -5187,8 +5187,9 @@ class TestSchedulerTemplatedProject(ZuulTestCase):
|
|||
|
||||
self.assertEqual(self.getJobFromHistory('project-test1').result,
|
||||
'SUCCESS')
|
||||
print(self.getJobFromHistory('project-test1').
|
||||
parameters['zuul']['_inheritance_path'])
|
||||
self.log.info(
|
||||
self.getJobFromHistory('project-test1').
|
||||
parameters['zuul']['_inheritance_path'])
|
||||
|
||||
def test_implied_branch_matchers(self):
|
||||
# This tests that there is an implied branch matcher when a
|
||||
|
@ -5207,8 +5208,9 @@ class TestSchedulerTemplatedProject(ZuulTestCase):
|
|||
|
||||
self.assertEqual(self.getJobFromHistory('project-test1').result,
|
||||
'SUCCESS')
|
||||
print(self.getJobFromHistory('project-test1').
|
||||
parameters['zuul']['_inheritance_path'])
|
||||
self.log.info(
|
||||
self.getJobFromHistory('project-test1').
|
||||
parameters['zuul']['_inheritance_path'])
|
||||
|
||||
|
||||
class TestSchedulerSuccessURL(ZuulTestCase):
|
||||
|
|
|
@ -3761,8 +3761,8 @@ class TestJobOutput(AnsibleZuulTestCase):
|
|||
j[0]['plays'][0]['tasks'][0]
|
||||
['hosts']['localhost']['stdout'])
|
||||
|
||||
print(self._get_file(self.history[0],
|
||||
'work/logs/job-output.txt'))
|
||||
self.log.info(self._get_file(self.history[0],
|
||||
'work/logs/job-output.txt'))
|
||||
self.assertIn(token,
|
||||
self._get_file(self.history[0],
|
||||
'work/logs/job-output.txt'))
|
||||
|
@ -3790,8 +3790,8 @@ class TestJobOutput(AnsibleZuulTestCase):
|
|||
j[0]['plays'][0]['tasks'][0]
|
||||
['hosts']['localhost']['stdout'])
|
||||
|
||||
print(self._get_file(self.history[0],
|
||||
'work/logs/job-output.json'))
|
||||
self.log.info(self._get_file(self.history[0],
|
||||
'work/logs/job-output.json'))
|
||||
self.assertIn(token,
|
||||
self._get_file(self.history[0],
|
||||
'work/logs/job-output.txt'))
|
||||
|
|
Loading…
Reference in New Issue