Comment 4 for bug 1728640

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/516777
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=57321ad60c82d2113ff8fb6f60dfb85af85cea00
Submitter: Zuul
Branch: master

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.

    Closes-bug: #1728640
    Change-Id: I3f95fd3b83d6b5c5801d3a16a3e73623ed49da29