Switch to using stestr
According to Openstack summit session [1] stestr is maintained project to which all Openstack projects should migrate. Let's switch it then. [1] https://etherpad.openstack.org/p/YVR-python-pti Change-Id: Ib27496313447cac962e4849223ab9eb96a9d873f
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -23,6 +23,9 @@ ChangeLog
|
||||
cover
|
||||
api-ref/build/
|
||||
|
||||
!/.stestr.conf
|
||||
.stestr/
|
||||
|
||||
#Python
|
||||
*.pyc
|
||||
|
||||
|
||||
3
.stestr.conf
Normal file
3
.stestr.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
[DEFAULT]
|
||||
test_path=${OS_TEST_PATH:-./murano/tests/unit}
|
||||
top_dir=./
|
||||
@@ -64,7 +64,7 @@ openstacksdk==0.12.0
|
||||
os-api-ref==1.4.0
|
||||
os-client-config==1.29.0
|
||||
os-service-types==1.2.0
|
||||
os-testr==1.0.0
|
||||
stestr==1.0.0
|
||||
osc-lib==1.10.0
|
||||
oslo.cache==1.29.0
|
||||
oslo.concurrency==3.26.0
|
||||
|
||||
@@ -15,7 +15,7 @@ testscenarios>=0.4 # Apache-2.0/BSD
|
||||
unittest2>=1.1.0 # BSD
|
||||
pylint==1.4.5 # GPLv2
|
||||
requests>=2.14.2 # Apache-2.0
|
||||
os-testr>=1.0.0 # Apache-2.0
|
||||
stestr>=1.0.0 # Apache-2.0
|
||||
murano-pkg-check>=0.3.0 # Apache-2.0
|
||||
bandit>=1.1.0 # Apache-2.0
|
||||
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o pipefail
|
||||
|
||||
TESTRARGS=$1
|
||||
python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | python $(which subunit-trace) -f
|
||||
2
tox.ini
2
tox.ini
@@ -13,7 +13,7 @@ passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
commands = rm -f .testrepository/times.dbm
|
||||
bash tools/pretty_tox.sh '{posargs}'
|
||||
stestr run {posargs}
|
||||
whitelist_externals = bash
|
||||
find
|
||||
rm
|
||||
|
||||
Reference in New Issue
Block a user