commit 57321ad60c82d2113ff8fb6f60dfb85af85cea00
Author: Sean McGinnis <email address hidden>
Date: Tue Oct 31 15:05:12 2017 -0500
Make test logging setup fixture disable future setup
Our logging fixture sets up logging in a way that we need to capture
things during tests. However, some of our tests do things like call
back into main functions, which then call logging setup again, and
unwind everything we're doing (including debug message testing).
This patches out oslo_log setup after the fixture runs, thus ignoring
calls to it in the future.
This change originally implemented in Nova with commit
dc2f4f88ac8d7bcf904908b4683522cd6839ba70.
Reviewed: https:/ /review. openstack. org/516777 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=57321ad60c8 2d2113ff8fb6f60 dfb85af85cea00
Committed: https:/
Submitter: Zuul
Branch: master
commit 57321ad60c82d21 13ff8fb6f60dfb8 5af85cea00
Author: Sean McGinnis <email address hidden>
Date: Tue Oct 31 15:05:12 2017 -0500
Make test logging setup fixture disable future setup
Our logging fixture sets up logging in a way that we need to capture
things during tests. However, some of our tests do things like call
back into main functions, which then call logging setup again, and
unwind everything we're doing (including debug message testing).
This patches out oslo_log setup after the fixture runs, thus ignoring
calls to it in the future.
This change originally implemented in Nova with commit d7bcf904908b468 3522cd6839ba70.
dc2f4f88ac8
Closes-bug: #1728640 c5801d3a16a3e73 623ed49da29
Change-Id: I3f95fd3b83d6b5