Move requirements to the PTI

When the TC merged I2637dd714cbb6d38ef8b8dc1083e359207118284 we're
supposed to invoke stestr rather than testr so lets do that

Change-Id: Ic5b984949462e9d96d0ba122531d7f0a3d733891
This commit is contained in:
Tony Breeds 2018-05-21 14:43:48 -07:00
parent 1eac6a0453
commit 9efda7ea25
4 changed files with 5 additions and 10 deletions

3
.stestr.conf Normal file
View File

@ -0,0 +1,3 @@
[DEFAULT]
test_path=./openstack_requirements/tests
top_dir=./

View File

@ -1,8 +0,0 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
${PYTHON:-python} -m subunit.run discover -t ./ openstack_requirements/ $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -3,7 +3,7 @@
# process, which may cause wedges in the gate later.
# NOTE: These are requirements for testing the requirements project only
# See global-requirements for the actual requirements list
testrepository>=0.0.18 # Apache-2.0/BSD
stestr>=1.0.0 # Apache-2.0
testscenarios>=0.4 # Apache-2.0/BSD
testtools>=2.2.0 # MIT
virtualenv>=14.0.6 # MIT

View File

@ -11,7 +11,7 @@ setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --slowest --testr-args='{posargs}'
stestr run {posargs}
[testenv:py27-check-uc]
install_command = pip install -U {opts} -c {toxinidir}/upper-constraints.txt {packages}