From 43c4424efe1f9a849788b00a6985b78e16e65794 Mon Sep 17 00:00:00 2001 From: Felipe Monteiro Date: Wed, 14 Feb 2018 04:37:35 +0000 Subject: [PATCH] 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 --- tox.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 3943e0ab..28ab69ee 100644 --- a/tox.ini +++ b/tox.ini @@ -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 =