summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-01-18 02:23:22 +0000
committerGerrit Code Review <review@openstack.org>2023-01-18 02:23:22 +0000
commite0dc81c5a31f19e08496c65331d25827c99a6e74 (patch)
treeeefc7d57def6502d215e764474fe0bbf9569ea84 /tox.ini
parentdd9b687f715f0ef6d87b420a0bad3fe8f54f0954 (diff)
parent51a944850f943b814b91936dc5e507ef08da62b8 (diff)
downloadswift-e0dc81c5a31f19e08496c65331d25827c99a6e74.tar.gz
Merge "Skip coverage reports when running pytest directly"
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini4
1 files changed, 2 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 0d4fbd7e5..86f81ee28 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,7 +3,7 @@ envlist = py37,py27,pep8
minversion = 3.18.0
[pytest]
-addopts = --verbose --cov=swift --cov-branch --cov-report=html:cover --cov-report term
+addopts = --verbose
[testenv]
usedevelop = True
@@ -16,7 +16,7 @@ deps =
commands =
find {envdir} ( -type f -o -type l ) -name "*.py[co]" -delete
find {envdir} -type d -name "__pycache__" -delete
- bash -ec "pytest {posargs:test/unit} || pytest --last-failed {posargs:test/unit}"
+ bash -ec "pytest --cov=swift --cov-branch --cov-report=html:cover --cov-report term {posargs:test/unit} || pytest --last-failed {posargs:test/unit}"
allowlist_externals =
bash
find