← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1433785] [NEW] Tests error out when running tests with --debug after oslo.log graduation

 

Public bug reported:

If you want to debug into the tests, you might do "./run_tests.sh
--debug -V glance.tests.unit.v1.test_api.TestGlanceAPI"

This translated to "python -m testtools.run
glance.tests.unit.v1.test_api.TestGlanceAPI" which errors out because we
attempt to set CONF.debug but the debug option hasn't been registered.
This is registered by oslo.log and when using testtools.run, it seems to
not be registered (probably because of how testtools imports tests).
This prevents tests from running properly and from debugging into them.

** Affects: glance
     Importance: Low
     Assignee: Ian Cordasco (icordasc)
         Status: In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1433785

Title:
  Tests error out when running tests with --debug after oslo.log
  graduation

Status in OpenStack Image Registry and Delivery Service (Glance):
  In Progress

Bug description:
  If you want to debug into the tests, you might do "./run_tests.sh
  --debug -V glance.tests.unit.v1.test_api.TestGlanceAPI"

  This translated to "python -m testtools.run
  glance.tests.unit.v1.test_api.TestGlanceAPI" which errors out because
  we attempt to set CONF.debug but the debug option hasn't been
  registered. This is registered by oslo.log and when using
  testtools.run, it seems to not be registered (probably because of how
  testtools imports tests). This prevents tests from running properly
  and from debugging into them.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1433785/+subscriptions


Follow ups

References