diff options
author | Ralf Haferkamp <rhafer@suse.de> | 2015-10-28 15:33:22 +0100 |
---|---|---|
committer | Ralf Haferkamp <rhafer@suse.de> | 2016-02-16 12:43:04 +0100 |
commit | 8a2ed13620e78f4b82e68028e86745e8c86240b0 (patch) | |
tree | 7c6d9d2c3d6f11599aaf4727522a17d2475c8306 /tox.ini | |
parent | 99c588e28c2c4eb0b684cfd54d79d76fc30197fe (diff) | |
download | python-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.ini | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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}' |