From 6ec05cc210b6c3edea0decd5ddf12fbc78efc5d9 Mon Sep 17 00:00:00 2001 From: junboli Date: Mon, 20 Nov 2017 13:31:34 +0800 Subject: [PATCH] Switch from ostestr to stestr This change updates the tox.ini file to call stestr directly instead of going through ostestr. For more background you can read the ML posting: https://goo.gl/TFvcxy So now you won't need `--n` to run single tests, and you can also supply regex directly without even the `--`. For example: `tox -epy27 $regex` Change-Id: I2b9b7fbd60b2cc5eea8af01e20cde5714df5027a --- test-requirements.txt | 2 -- tox.ini | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 16f1674a..41a9edd1 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -4,10 +4,8 @@ hacking<0.13,>=0.12.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0 -python-subunit>=0.0.18 # Apache-2.0/BSD sphinx>=1.6.2 # BSD oslotest>=1.10.0 # Apache-2.0 -os-testr>=0.8.0 # Apache-2.0 testrepository>=0.0.18 # Apache-2.0/BSD testscenarios>=0.4 # Apache-2.0/BSD testtools>=1.4.0 # MIT diff --git a/tox.ini b/tox.ini index b5a7d02d..3b9b80ec 100644 --- a/tox.ini +++ b/tox.ini @@ -12,7 +12,7 @@ setenv = deps = -r{toxinidir}/test-requirements.txt commands = find . -type f -name "*.pyc" -delete - ostestr {posargs} + stestr run {posargs} whitelist_externals = rm find