Skip to content

Commit f20b1d4

Browse files
committed
Add an explicit tox job for functional tests
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
1 parent c4e7ae6 commit f20b1d4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.testr.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[DEFAULT]
2-
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
2+
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
33
test_id_option=--load-list $IDFILE
44
test_list_option=--list

tox.ini

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ deps = -r{toxinidir}/requirements.txt
1313
commands =
1414
python -m neutron.openstack.common.lockutils python setup.py testr --slowest --testr-args='{posargs}'
1515

16+
[testenv:functional]
17+
setenv = OS_TEST_PATH=./neutron/tests/functional
18+
commands =
19+
python setup.py testr --slowest --testr-args='{posargs}'
20+
1621
[tox:jenkins]
1722
sitepackages = True
1823
downloadcache = ~/cache/pip

0 commit comments

Comments
 (0)