Add a functional test target

Change-Id: Id5e91755ac9a9de52431385c4c71cc6da0538b8f
This commit is contained in:
Davanum Srinivas 2016-05-03 12:13:02 -04:00
parent f89081977e
commit 046e4915f8
2 changed files with 4 additions and 0 deletions

1
tools/kube-init.sh Normal file → Executable file
View File

@ -68,6 +68,7 @@ echo "SUCCESS"
echo "Cluster created!"
echo ""
echo "Running tests..."
set -x -e
# Yield execution to venv command
$*

View File

@ -16,6 +16,9 @@ commands = python setup.py test --slowest --testr-args='{posargs}'
[testenv:common-constraints]
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
[testenv:py27-functional]
commands = {toxinidir}/tools/kube-init.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:pep8]
commands = flake8 {posargs}