From 046e4915f8a2928d1051e853f99a69c65a451f8c Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Tue, 3 May 2016 12:13:02 -0400 Subject: [PATCH] Add a functional test target Change-Id: Id5e91755ac9a9de52431385c4c71cc6da0538b8f --- tools/kube-init.sh | 1 + tox.ini | 3 +++ 2 files changed, 4 insertions(+) mode change 100644 => 100755 tools/kube-init.sh diff --git a/tools/kube-init.sh b/tools/kube-init.sh old mode 100644 new mode 100755 index 2b7ec23..e952b85 --- a/tools/kube-init.sh +++ b/tools/kube-init.sh @@ -68,6 +68,7 @@ echo "SUCCESS" echo "Cluster created!" echo "" +echo "Running tests..." set -x -e # Yield execution to venv command $* \ No newline at end of file diff --git a/tox.ini b/tox.ini index 693ff72..2bf45f1 100644 --- a/tox.ini +++ b/tox.ini @@ -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}