aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-12-31 02:16:27 +0000
committerGerrit Code Review <review@openstack.org>2015-12-31 02:16:27 +0000
commit1a3e284c2bce59c7aeb87ee2e5d53fb3c79400b0 (patch)
treeda95db0b9de2b5e7a6ece0dc3039cd9e4f729c7b /tests
parent6fcde0dab1d8590cecfbbe942704e6848e366584 (diff)
parent991be99c894f249cada7035d7fff1909e02d89e5 (diff)
downloadkolla-1a3e284c2bce59c7aeb87ee2e5d53fb3c79400b0.tar.gz
kolla-1a3e284c2bce59c7aeb87ee2e5d53fb3c79400b0.zip
Merge "Make the logging more safe"
Diffstat (limited to 'tests')
-rw-r--r--tests/test_build.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_build.py b/tests/test_build.py
index e72438299..6aaf98652 100644
--- a/tests/test_build.py
+++ b/tests/test_build.py
@@ -35,7 +35,7 @@ class BuildTest(base.BaseTestCase):
def runTest(self):
with patch.object(sys, 'argv', self.build_args):
- LOG.info("Running with args %s" % self.build_args)
+ LOG.info("Running with args %s", self.build_args)
bad_results, good_results, unmatched_results = build.main()
# these are images that are known to not build properly
@@ -53,15 +53,15 @@ class BuildTest(base.BaseTestCase):
failures = failures + 1
LOG.warning(">>> Expected image '%s' to fail, please update"
" the excluded_images in source file above if the"
- " image build has been fixed." % image)
+ " image build has been fixed.", image)
else:
if result is not 'error':
continue
failures = failures + 1
- LOG.critical(">>> Expected image '%s' to succeed!" % image)
+ LOG.critical(">>> Expected image '%s' to succeed!", image)
for image in unmatched_results.keys():
- LOG.warning(">>> Image '%s' was not matched" % image)
+ LOG.warning(">>> Image '%s' was not matched", image)
self.assertEqual(failures, 0, "%d failure(s) occurred" % failures)