Comment 12 for bug 1768077

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

Reviewed: https://review.openstack.org/566947
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=d501960d7e8474927ebd6d6abc52350a0f23275a
Submitter: Zuul
Branch: master

commit d501960d7e8474927ebd6d6abc52350a0f23275a
Author: Brian Rosmaita <email address hidden>
Date: Tue May 8 12:54:24 2018 -0400

    Refactor wait_for_scrubber_shutdown function

    The wait_for_scrubber_shutdown function catches AssertionErrors
    and retries. Refactor it so that it only retries for a specific
    error (namely, when glance scrubber is running in daemon mode when
    the test is being executed) by changing the function so that it
    returns values instead of relying on test assertions in the
    function passed to it. Also refactor the tests that call
    wait_for_scrubber_shutdown so that they check the returned results
    instead of using assertions in the function they pass to
    wait_for_scrubber_shutdown.

    This is a follow-up to https://review.openstack.org/#/c/566681/

    Change-Id: I7108179e0d96e09638ff783b029a8216f0938c3b
    Closes-bug: #1768077