← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1196275] Re: unittests cannot be run without installation

 

** Changed in: glance
       Status: Fix Committed => Fix Released

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

Title:
  unittests cannot be run without installation

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released

Bug description:
  Due to the move of glance-manage to entrypoints, it's now not possible
  to run glance's unittests in a non-installed location, which makes
  things awkward for packagers.

  Eventually, glance manage should be able to be importable so that we
  could just use it - but this is prevented by the global oslo.config
  object. Until that gets fixed, a workaround is to make
  glance.cmd.manage able to be run via python -m and then execute that
  via sys.executable so that we ensure it picks up the current running
  python (in case of virtualenvs)

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