diff options
author | Dmitry Tantsur <dtantsur@protonmail.com> | 2019-09-25 11:48:40 +0200 |
---|---|---|
committer | Riccardo Pittau <elfosardo@gmail.com> | 2019-10-01 10:29:51 +0200 |
commit | 5a7cd9899821f0ca4654474e1ac6f565f671030f (patch) | |
tree | 780e74f5fbf2786497a3899ecb59d618ed43285e | |
parent | 13ac82e0bbdea347de274bc04421a14bb80e5a9e (diff) | |
download | ironic-python-agent-5a7cd9899821f0ca4654474e1ac6f565f671030f.tar.gz |
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.ini | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |