Merge "Change test prints to log.info"
This commit is contained in:
@@ -5238,8 +5238,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
|
||||
@@ -5258,8 +5259,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):
|
||||
|
||||
@@ -3762,8 +3762,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'))
|
||||
@@ -3791,8 +3791,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'))
|
||||
|
||||
Reference in New Issue
Block a user