From c5f5c2c219409673d44d706782e3eab1be97799e Mon Sep 17 00:00:00 2001 From: Lance Bragstad Date: Fri, 29 Sep 2017 20:33:14 +0000 Subject: [PATCH] Use stestr directly instead of ostestr This is inline with the direction from: http://lists.openstack.org/pipermail/openstack-dev/2017-September/122135.html This also makes it easier to invoke tests based on a regular expression. Previously, it was possible to do: $ tox -e py27,py34 -- keystone.tests.unit.test_module.TestCase But that isn't supported in the way we use ostestr in tox with the new stestr changes. Instead of refactoring our ostestr usage we can just replace it with stestr directly which allows us to invoke tests using a single regex and is inline with the direction of moving away from ostestr. Change-Id: I83eb6ce905c45c9c388a8d5a3c9369f5c5f6710e --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 84671f0976..85c609e99f 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,7 @@ deps = -r{toxinidir}/test-requirements.txt .[ldap,memcache,mongodb] commands = find keystone -type f -name "*.pyc" -delete - ostestr '{posargs}' + stestr run {posargs} whitelist_externals = bash find