summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2020-12-04 10:49:45 -0800
committerTim Burke <tim.burke@gmail.com>2020-12-04 22:21:58 -0800
commit976cc8f482723a698160815affabb540e4d766eb (patch)
tree47871f44dd7f872738de01943546fc5254312d42 /tox.ini
parent0d37492c6595b2f88d7fb51b81060439e60fd674 (diff)
downloadswift-976cc8f482723a698160815affabb540e4d766eb.tar.gz
Give unit tests a second chance to pass
Change-Id: I495fb1ec2394130c7274368662b58212ca375854
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini16
1 files changed, 10 insertions, 6 deletions
diff --git a/tox.ini b/tox.ini
index ab6b971f4..9c28240cd 100644
--- a/tox.ini
+++ b/tox.ini
@@ -14,11 +14,13 @@ deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-commands = find {envdir} ( -type f -o -type l ) -name "*.py[co]" -delete
- find {envdir} -type d -name "__pycache__" -delete
- nosetests {posargs:test/unit}
-whitelist_externals = find
- rm
+commands =
+ find {envdir} ( -type f -o -type l ) -name "*.py[co]" -delete
+ find {envdir} -type d -name "__pycache__" -delete
+ bash -ec "nosetests {posargs:test/unit} --with-id || nosetests --failed"
+allowlist_externals =
+ bash
+ find
passenv = SWIFT_* *_proxy
[testenv:py27]
@@ -98,6 +100,8 @@ commands = sphinx-build -W -b html doc/source doc/build/html
# the API Ref to docs.openstack.org.
basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
+allowlist_externals =
+ rm
commands =
rm -rf api-ref/build
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
@@ -157,7 +161,7 @@ deps =
[testenv:pdf-docs]
basepython = python3
deps = {[testenv:docs]deps}
-whitelist_externals =
+allowlist_externals =
make
commands =
sphinx-build -W -b latex doc/source doc/build/pdf