← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1719269] Re: Unable to run individual test

 

As per ostestr documentation [1], -n option is used to run single test.
So it's not a workaround solution, it is working as expected.

Marking it as invalid.


[1]: https://docs.openstack.org/os-testr/latest/user/ostestr.html

** Changed in: glance
       Status: New => Invalid

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

Title:
  Unable to run individual test

Status in Glance:
  Invalid

Bug description:
  If you try to run individual test using tox then it runs entire test
  suit.

  Steps to reproduce:
  Run below command,

  tox -e py27
  glance.tests.unit.test_auth.TestKeystoneAuthPlugin.test_get_plugin_from_strategy_keystone

  or

  tox -e py35
  glance.tests.unit.test_auth.TestKeystoneAuthPlugin.test_get_plugin_from_strategy_keystone

  Instead of running single unit test it runs entire test suit.

  Workaround:

  Workaround so far is to mention -- -n while running single test like
  below;

  tox -e py27 -- -n
  glance.tests.unit.test_auth.TestKeystoneAuthPlugin.test_get_plugin_from_strategy_keystone

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


References