Replace testrepository with stestr

Replace outdated testrepository with its newer sibling, which
is maintained.

Change-Id: I9755b82d8a2a82f146e71fdc0f32e3f6002e804d
This commit is contained in:
Sorin Sbarnea 2020-05-20 19:48:18 +01:00
parent a0a5f260ea
commit 2f666c7b35
4 changed files with 7 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
*.egg-info
.tox
.stestr
build/*
*.pyc
gerritlib/versioninfo

2
.stestr.conf Normal file
View File

@ -0,0 +1,2 @@
[DEFAULT]
test_path=./gerritlib/tests

View File

@ -1,4 +1,5 @@
hacking>=0.5.6,<0.11
sphinx>=1.1.2,<1.2
python-subunit
testrepository
stestr<3.0.0;python_version<'3.5'
stestr;python_version>='3.5'

View File

@ -6,11 +6,12 @@ skip_missing_interpreters = false
envlist = pep8, py{38,37,36,35,27,py}
[testenv]
commands = python setup.py test --slowest --testr-args='{posargs}'
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
commands =
stestr run --slowest {posargs}
[testenv:pep8]
commands = flake8