tox: Simplify test running
We were actually running tests four times. Twice with eventlet disabled and twice with it enabled. Correct this. Change-Id: Idb3926d73ff3c11abe9c273062aca1b299b9f72e Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
parent
f3bdd4d422
commit
f048068216
@ -3,5 +3,5 @@ set -e
|
||||
# Replace mysql:// by mysql+pymysql:// and add sqlite
|
||||
export OS_TEST_DBAPI_ADMIN_CONNECTION="${OS_TEST_DBAPI_ADMIN_CONNECTION/#mysql:/mysql+pymysql:};sqlite://"
|
||||
echo $OS_TEST_DBAPI_ADMIN_CONNECTION
|
||||
stestr run $*
|
||||
TEST_EVENTLET=1 stestr run $*
|
||||
TEST_EVENTLET=0 stestr run $*
|
||||
TEST_EVENTLET=1 stestr run --combine $*
|
||||
|
3
tox.ini
3
tox.ini
@ -19,8 +19,7 @@ deps =
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
-r{toxinidir}/requirements.txt
|
||||
commands =
|
||||
env TEST_EVENTLET=0 {env:PIFPAF_MYSQL:} {env:PIFPAF_POSTGRESQL:} {env:BASECOMMAND:} {posargs}
|
||||
env TEST_EVENTLET=1 {env:PIFPAF_MYSQL:} {env:PIFPAF_POSTGRESQL:} {env:BASECOMMAND:} {posargs}
|
||||
{env:PIFPAF_MYSQL:} {env:PIFPAF_POSTGRESQL:} {env:BASECOMMAND:} {posargs}
|
||||
|
||||
[testenv:pep8]
|
||||
commands =
|
||||
|
Loading…
Reference in New Issue
Block a user