]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Add an explicit tox job for functional tests
authorMaru Newby <marun@redhat.com>
Tue, 14 Jan 2014 18:43:22 +0000 (18:43 +0000)
committerMaru Newby <marun@redhat.com>
Wed, 5 Feb 2014 17:11:52 +0000 (17:11 +0000)
This change is in support of adding a new jenkins job dedicated
to functional testing.  Functional tests will no longer be
run as part of the unit tests.

Change-Id: Ia99940f7e5a2165720ae2a74aadf62ff17ad3d75

.testr.conf
tox.ini

index b63d965523cf5ab1f8f4ac44f12ad94c12e4b6c2..c180b0319fb704c3738e5195e7d8920df367281a 100644 (file)
@@ -1,4 +1,4 @@
 [DEFAULT]
-test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ neutron/tests $LISTOPT $IDOPTION
+test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./neutron/tests/unit} $LISTOPT $IDOPTION
 test_id_option=--load-list $IDFILE
 test_list_option=--list
diff --git a/tox.ini b/tox.ini
index 22eed4b4ad65f124235be7148d95be1297862705..69a4d70057c93d01d441898ab5f6499d5c88dca8 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -13,6 +13,11 @@ deps = -r{toxinidir}/requirements.txt
 commands =
   python -m neutron.openstack.common.lockutils python setup.py testr --slowest --testr-args='{posargs}'
 
+[testenv:functional]
+setenv = OS_TEST_PATH=./neutron/tests/functional
+commands =
+  python setup.py testr --slowest --testr-args='{posargs}'
+
 [tox:jenkins]
 sitepackages = True
 downloadcache = ~/cache/pip