diff options
| author | Jeffrey Zhang <zhang.lei.fly@gmail.com> | 2015-12-29 15:26:45 +0800 |
|---|---|---|
| committer | Jeffrey Zhang <zhang.lei.fly@gmail.com> | 2015-12-30 15:11:43 +0800 |
| commit | 991be99c894f249cada7035d7fff1909e02d89e5 (patch) | |
| tree | 1e1539228c584245c0b472292a277c06f767cc06 /tests | |
| parent | b70be6630f828394a7067bc256665a7a6fbdca54 (diff) | |
| download | kolla-991be99c894f249cada7035d7fff1909e02d89e5.tar.gz kolla-991be99c894f249cada7035d7fff1909e02d89e5.zip | |
Make the logging more safe
TrivialFix
Change-Id: I72c541c1846e503486b402e88d5b29364920fc83
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_build.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_build.py b/tests/test_build.py index e0827eec3..79ee54ca5 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 @@ -52,15 +52,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) |
