Merge "Switch to using stestr"

This commit is contained in:
Zuul 2018-07-17 06:07:08 +00:00 committed by Gerrit Code Review
commit 3fc25ae547
6 changed files with 9 additions and 9 deletions

3
.gitignore vendored
View File

@ -23,6 +23,9 @@ ChangeLog
cover
api-ref/build/
!/.stestr.conf
.stestr/
#Python
*.pyc

3
.stestr.conf Normal file
View File

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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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