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.
Reviewed: https:/ /review. openstack. org/566947 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=d501960d7e8 474927ebd6d6abc 52350a0f23275a
Committed: https:/
Submitter: Zuul
Branch: master
commit d501960d7e84749 27ebd6d6abc5235 0a0f23275a
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 for_scrubber_ shutdown so that they check the returned results for_scrubber_ shutdown.
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_
instead of using assertions in the function they pass to
wait_
This is a follow-up to https:/ /review. openstack. org/#/c/ 566681/
Change-Id: I7108179e0d96e0 9638ff783b029a8 216f0938c3b
Closes-bug: #1768077