Fix incorrect run command and add stestr config file.

* update tox.ini with stestr command
  * added .stestr.conf file
  * update .gitignore and test-requirements.txt

Change-Id: I5883533eb4d72fc6cc53fab591845189e15e72dc
This commit is contained in:
Maxim Sava 2022-08-15 10:40:56 +03:00
parent efdd6972f2
commit 3f874ff390
4 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View File

@ -29,6 +29,7 @@ cover/
nosetests.xml
.testrepository
.venv
.stestr
# Translations
*.mo

3
.stestr.conf Normal file
View File

@ -0,0 +1,3 @@
[DEFAULT]
test_path=${OS_TEST_PATH:-./glance_tempest_plugin}
top_dir=./

View File

@ -7,5 +7,5 @@ hacking>=3.0.1,<3.1 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0
python-subunit>=1.0.0 # Apache-2.0/BSD
oslotest>=3.2.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
stestr>=2.0.0 # Apache-2.0/BSD
testtools>=2.2.0 # MIT

View File

@ -14,7 +14,7 @@ setenv =
PYTHONWARNINGS=default::DeprecationWarning
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
commands = python setup.py test --slowest --testr-args='{posargs}'
commands = stestr run --slowest {posargs}
[testenv:pep8]
commands = flake8 {posargs}