diff --git a/.testr.conf b/.testr.conf index ea6f49fe83e..6060451ed5c 100644 --- a/.testr.conf +++ b/.testr.conf @@ -2,7 +2,7 @@ test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \ OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \ OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \ - ${PYTHON:-python} -m subunit.run discover -t ./ ./nova/tests $LISTOPT $IDOPTION + ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./nova/tests} $LISTOPT $IDOPTION test_id_option=--load-list $IDFILE test_list_option=--list diff --git a/nova/tests/functional/__init__.py b/nova/tests/functional/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tox.ini b/tox.ini index 9d656556f36..0624819d974 100644 --- a/tox.ini +++ b/tox.ini @@ -28,6 +28,17 @@ downloadcache = ~/cache/pip commands = flake8 {posargs} +[testenv:functional] +usedevelop = True +install_command = pip install -U --force-reinstall {opts} {packages} +setenv = VIRTUAL_ENV={envdir} + OS_TEST_PATH=./nova/tests/functional +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt +commands = + find . -type f -name "*.pyc" -delete + bash tools/pretty_tox.sh '{posargs}' + [testenv:genconfig] commands = bash tools/config/generate_sample.sh -b . -p nova -o etc/nova