use os-testr instead of testr

Make use of the testr OpenStack wrapper ostestr instead of
testr directly.

Closes-Bug: #1566353

Change-Id: I85972dd09384dad22e3b78b0365b2026f1baef5c
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2016-04-08 10:35:01 +02:00
parent 29d8099a1f
commit f248c0ef93
2 changed files with 4 additions and 2 deletions

View File

@ -22,6 +22,8 @@ testscenarios>=0.4 # Apache-2.0/BSD
testtools>=1.4.0 # MIT
psutil<2.0.0,>=1.1.1 # BSD
oslotest>=1.10.0 # Apache-2.0
os-testr>=0.4.1 # Apache-2.0
# Optional packages that should be installed when testing
PyMySQL>=0.6.2 # MIT License
psycopg2>=2.5 # LGPL/ZPL

View File

@ -8,9 +8,9 @@ setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
commands = lockutils-wrapper python setup.py testr --slowest --testr-args='{posargs}'
commands = ostestr --slowest {posargs}
whitelist_externals = bash
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
passenv = *_proxy *_PROXY
[testenv:releasenotes]
# NOTE(jaegerandi): this target does not use constraints because