summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorRalf Haferkamp <rhafer@suse.de>2015-10-28 15:33:22 +0100
committerRalf Haferkamp <rhafer@suse.de>2016-02-16 12:43:04 +0100
commit8a2ed13620e78f4b82e68028e86745e8c86240b0 (patch)
tree7c6d9d2c3d6f11599aaf4727522a17d2475c8306 /tox.ini
parent99c588e28c2c4eb0b684cfd54d79d76fc30197fe (diff)
downloadpython-novaclient-8a2ed13620e78f4b82e68028e86745e8c86240b0.tar.gz
Allow to specify a network for functional tests
Currently the tests just attach instances to the first network returned by "net-list". That might however not be the right thing in some environments. This change allows to override the default network via the environment variable "OS_NOVACLIENT_NETWORK". If not specified the test will fallback to the old behaviour and just use the first network. Closes-Bug: #1510975 Change-Id: Ie682111127584a33d8e96377d812d3a6352c760d
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 845523a4..b8a5004d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -36,12 +36,14 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen
[testenv:functional]
basepython = python2.7
+passenv = OS_NOVACLIENT_TEST_NETWORK
setenv =
OS_TEST_PATH = ./novaclient/tests/functional
commands = python setup.py testr --testr-args='--concurrency=1 {posargs}'
[testenv:functional-py34]
basepython = python3.4
+passenv = OS_NOVACLIENT_TEST_NETWORK
setenv =
OS_TEST_PATH = ./novaclient/tests/functional
commands = python setup.py testr --testr-args='--concurrency=1 {posargs}'