update .functests to run stestr

Updated .functests script to run similar to how it's defined
in tox.ini

Change-Id: I17df28d8cbe0e10e48b26c2f9737308552ea88db
This commit is contained in:
Thiago da Silva 2018-11-24 08:11:26 -05:00
parent 8778c91c71
commit fc128672f6

View File

@ -2,9 +2,13 @@
set -e
export OS_TEST_PATH='tests.functional'
python setup.py testr --coverage --testr-args="--concurrency=1"
export PYTHON='coverage run --source swiftclient --parallel-mode'
stestr run --concurrency=1
RET=$?
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report -m
rm -f .coverage
exit $RET