while running unit tests using run_tests.sh,
we can see quite an amount of unwanted log
messages and stdout prints as part of
the unit test results on the console.
This basically makes it difficult to go
through the test results and figure whats happening.
This patch fixes the cause for those
extraneous log messages caused due to
a incorrect fixture usage in test_manage.py
and also by mocking sys.stdout at the respective unit tests.
Reviewed: https:/ /review. openstack. org/224787 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=367925c770c 98b188894e28994 4bb01fe711a588
Committed: https:/
Submitter: Jenkins
Branch: master
commit 367925c770c98b1 88894e289944bb0 1fe711a588
Author: Venkatesh Sampath <email address hidden>
Date: Thu Sep 17 11:20:14 2015 +0530
Prevent extraneous log messages and stdout prints
while running unit tests using run_tests.sh,
we can see quite an amount of unwanted log
messages and stdout prints as part of
the unit test results on the console.
This basically makes it difficult to go
through the test results and figure whats happening.
This patch fixes the cause for those
extraneous log messages caused due to
a incorrect fixture usage in test_manage.py
and also by mocking sys.stdout at the respective unit tests.
Closes-bug: #1496898 a357a5c0df34b6d f7bf2d8ff86
Change-Id: If986691cb3f36b