Remove testrepository and .testr.conf

This commit is a follow-up of "switch to using stestr"
which was merged already [1].
After switch to using stestr, testrepository and .testr.conf
are unnecessary and should be removed.

This patch also switch coverage jobs to "stestr".

[1] https://review.openstack.org/574723

Change-Id: Ie28a8769d38c7f4400e5defc4ecc08865dc1825f
changes/79/581679/4
Vu Cong Tuan 2018-07-11 18:14:13 +07:00 committed by Harald Jensås
parent 8eee98b978
commit 41db5bec8c
4 changed files with 7 additions and 15 deletions

1
.gitignore vendored
View File

@ -28,7 +28,6 @@ develop-eggs
# Other
*.DS_Store
.idea
.testrepository
.tox
.venv
.*.swp

View File

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

View File

@ -133,7 +133,6 @@ stestr==1.0.0
stevedore==1.28.0
Tempita==0.5.2
tenacity==4.9.0
testrepository==0.0.20
testresources==2.0.1
testscenarios==0.4
testtools==2.2.0

10
tox.ini
View File

@ -31,10 +31,14 @@ commands = {posargs}
basepython = python3
setenv = VIRTUAL_ENV={envdir}
LANGUAGE=en_US
PYTHON=coverage run --source networking_baremetal --parallel-mode
commands =
coverage erase
python setup.py testr --coverage --omit='*test*' --testr-args='{posargs}'
coverage report --omit='*test*'
coverage erase
stestr run '{posargs}'
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report --omit='*test*'
[testenv:docs]
basepython = python3