From 5c8bbaafef590e4d346a03051a0ba55c8be26c5c Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 6 Nov 2014 11:32:34 +0100 Subject: [PATCH] Add tox -e functional Provide a tox -e functional stub, as a place for functional tests to migrate to. This will allow us to write a zuul test configuration for this environment. Part of bp:functional-tests-for-nova Change-Id: I8a1107beab151f9bf574cfbae1d4dc18400fd74e --- .testr.conf | 2 +- nova/tests/functional/__init__.py | 0 tox.ini | 11 +++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 nova/tests/functional/__init__.py diff --git a/.testr.conf b/.testr.conf index ea6f49fe83ef..6060451ed5c1 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 000000000000..e69de29bb2d1 diff --git a/tox.ini b/tox.ini index 9d656556f363..0624819d9742 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