Skip to content

Commit

Permalink
Give unit tests a second chance to pass
Browse files Browse the repository at this point in the history
Change-Id: I495fb1ec2394130c7274368662b58212ca375854
  • Loading branch information
tipabu committed Dec 5, 2020
1 parent 0d37492 commit 976cc8f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ MANIFEST

.testrepository/*
.stestr/*
.noseids
subunit.log
test/probe/.noseids
RELEASENOTES.rst
Expand Down
16 changes: 10 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 976cc8f

Please sign in to comment.