Comment 2 for bug 1472395

Revision history for this message
Assaf Muller (amuller) wrote :

We switched to use ostestr in neutron via (from tox.ini):
ostestr --regex '{posargs}'

However this means I can't pass tox parameters like I could via testr (i.e. tox -e some_env -- --until-failure test_regex).

I second the request in this bug to change ostestr so that an argument without '--' will be treated as the regex.

For example:
ostestr path.to.test

Will be treated as:
ostestr --regex path.to.test

And:
ostestr --until-failure path.to.test

Will be treated as:
ostestr --until-failure --regex path.to.test

This will allow ostestr to be used as such in tox.ini:
ostestr '{posargs}'

Which means that we'll be able (Once again) to pass parameters to ostestr via a tox invocation.