Fix tox -v skipping over sqlite unit test jobs

This PS fixes tox -v skipping over SQLite unit test jobs. tox -v
is used in CICD to run all jobs in tox envlist but currently
py{35,27}-{postgresql,} translates to:

   py35-
   py27-
   py35-postgresql
   py27-postgresql

Where the first two should instead be:

  py35
  py27

This PS also adds --regex flags to the unit test jobs so regular
expressions work with them.

Change-Id: Id468259a1b2e020494bdd58103d8750b4fac6000
This commit is contained in:
Felipe Monteiro 2018-02-14 04:37:35 +00:00 committed by Tin Lam
parent a420d5962d
commit 43c4424efe
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
[tox]
envlist = py{35,27}-{postgresql,},pep8,bandit,docs
envlist = py{35,27},py{35,27}-{postgresql},pep8,bandit,docs
[testenv]
usedevelop = True
@ -21,7 +21,7 @@ commands =
[testenv:py27]
commands =
{[testenv]commands}
ostestr '{posargs}'
ostestr --regex '{posargs}'
[testenv:py27-postgresql]
commands =
@ -31,7 +31,7 @@ commands =
[testenv:py35]
commands =
{[testenv]commands}
ostestr '{posargs}'
ostestr --regex '{posargs}'
[testenv:py35-postgresql]
commands =