Merge "Change test prints to log.info"

This commit is contained in:
Zuul
2018-06-27 00:24:31 +00:00
committed by Gerrit Code Review
2 changed files with 10 additions and 8 deletions
+6 -4
View File
@@ -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):
+4 -4
View File
@@ -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'))