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:
parent
efdd6972f2
commit
3f874ff390
1
.gitignore
vendored
1
.gitignore
vendored
@ -29,6 +29,7 @@ cover/
|
||||
nosetests.xml
|
||||
.testrepository
|
||||
.venv
|
||||
.stestr
|
||||
|
||||
# Translations
|
||||
*.mo
|
||||
|
3
.stestr.conf
Normal file
3
.stestr.conf
Normal file
@ -0,0 +1,3 @@
|
||||
[DEFAULT]
|
||||
test_path=${OS_TEST_PATH:-./glance_tempest_plugin}
|
||||
top_dir=./
|
@ -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
|
||||
|
2
tox.ini
2
tox.ini
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user