summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Tantsur <dtantsur@protonmail.com>2019-09-25 11:48:40 +0200
committerRiccardo Pittau <elfosardo@gmail.com>2019-10-01 10:29:51 +0200
commit5a7cd9899821f0ca4654474e1ac6f565f671030f (patch)
tree780e74f5fbf2786497a3899ecb59d618ed43285e
parent13ac82e0bbdea347de274bc04421a14bb80e5a9e (diff)
downloadironic-python-agent-5a7cd9899821f0ca4654474e1ac6f565f671030f.tar.gz
Fix tox.ini to correctly test lower-constraintsrocky-em3.3.3
Due to the way we currently define install_command, all test targets are using upper-constraints, including the lower-constraints one. This patch fixes it and adds standard things like passing proxy settings. Change-Id: I61c3b45ae591ea44688f29598cb8b802bb094423 (cherry picked from commit 91ed55678ee662df36794bf1f79153e6585023d6)
-rw-r--r--tox.ini8
1 files changed, 6 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index f19caa0b..04e7e01f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,15 +5,19 @@ envlist = py3,py27,functional,pep8
[testenv]
usedevelop = True
-install_command = pip install -U -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/rocky/upper-constraints.txt} {opts} {packages}
+install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
PYTHONDONTWRITEBYTECODE = 1
OS_TEST_PATH=./ironic_python_agent/tests/unit
LANGUAGE=en_US
LC_ALL=en_US.utf-8
-deps = -r{toxinidir}/test-requirements.txt
+deps =
+ -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/rocky}
+ -r{toxinidir}/requirements.txt
+ -r{toxinidir}/test-requirements.txt
commands = stestr run {posargs}
+passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:functional]
basepython = python3