Use os-testr instead of testr
This commit switches the use of plain testr for os-testr in the tox venvs. Change-Id: I285f820b7de3109665dd7a38da389b7fd42acf80
This commit is contained in:
3 changed files with 10 additions and 2 deletions
@@ -14,7 +14,7 @@ PyMySQL>=0.6.2 # MIT License
WebOb>=1.2.3
WebTest>=2.0
oslotest>=1.10.0 # Apache-2.0
testrepository>=0.0.18
os-testr>=0.7.0 # Apache-2.0
testresources>=0.2.4 # Apache-2.0/BSD
testscenarios>=0.4
testtools>=1.4.0
8
tools/ostestr_compat_shim.sh
Executable file
8
tools/ostestr_compat_shim.sh
Executable file
@@ -0,0 +1,8 @@
#!/bin/sh
# preserve old behavior of using an arg as a regex when '--' is not present
case $@ in
(*--*) ostestr $@;;
('') ostestr;;
(*) ostestr --regex "$@"
esac
2
tox.ini
2
tox.ini
@@ -11,7 +11,7 @@ setenv =
PYTHONWARNINGS=default::DeprecationWarning
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
commands = {toxinidir}/tools/ostestr_compat_shim.sh {posargs}
python {toxinidir}/tools/django-manage.py test bgpvpn_dashboard.test.api_tests.bgpvpn_tests
[testenv:releasenotes]
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.