From 0c9a4fd659af8d8eb19fb39af52a2106b2c307a5 Mon Sep 17 00:00:00 2001 From: Zhao Chao Date: Mon, 16 Apr 2018 16:59:54 +0800 Subject: Run unittests under the low-constraints job The low-constraints job should run unittests by the original desgin, we didn't put the commands about running unittests inside the default testenv settings, so in fact the low-constraints job did nothing except creating a virtualenv. This patch fixes and also move the unittests commands to the default testenv settings like the other OpenStack projects. Change-Id: Ia344a14a9baf7574b043fc08332869083da6dc1e Signed-off-by: Zhao Chao --- tox.ini | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 20e2a54b..7b7945b7 100644 --- a/tox.ini +++ b/tox.ini @@ -19,6 +19,8 @@ deps = -r{toxinidir}/requirements.txt commands = find ./trove -type f -name "*.pyc" -delete rm -f .testrepository/times.dbm rm -f trove_test.sqlite + stestr run --serial '{posargs}' + stestr slowest whitelist_externals = find rm bash @@ -32,22 +34,6 @@ commands = flake8 doc8 {posargs} -[stestr-base] -commands = stestr run --serial '{posargs}' - stestr slowest - -[testenv:py27] -commands = {[testenv]commands} - {[stestr-base]commands} - -[testenv:py34] -commands = {[testenv]commands} - {[stestr-base]commands} - -[testenv:py35] -commands = {[testenv]commands} - {[stestr-base]commands} - [testenv:apiexamples] commands = {envpython} generate_examples.py -- cgit v1.2.1