Skip to content

Commit

Permalink
Fix tox4 error
Browse files Browse the repository at this point in the history
tox.ini started failing with Tox4 which had some
incompatible changes. One is passenv where we need
to pass each value in newline otherwise, it fails with
error:

 failed with pass_env values cannot contain whitespace,
 use comma to have multiple values in a single line,
 invalid values found.....

Fixing tox.ini for tox4 changes.

Change-Id: I0a377c9329cef8b251b800018fc0d7f784008329
(cherry picked from commit e2cd725)
(cherry picked from commit 022e150)
  • Loading branch information
gmannos committed Dec 27, 2022
1 parent 5fbf473 commit 3f6c689
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
minversion = 3.18.0
# python runtimes: https://governance.openstack.org/tc/reference/runtimes/ussuri.html
envlist = functional-py39,py39,py36,pep8
skipsdist = True
skip_missing_interpreters = true
# this allows tox to infer the base python from the environment name
# and override any basepython configured in this file
Expand Down Expand Up @@ -33,7 +32,9 @@ commands =
allowlist_externals = bash
find
rm
passenv = *_proxy *_PROXY
passenv =
*_proxy
*_PROXY

[testenv:functional]
# this will use whatever the system python3 is
Expand Down

0 comments on commit 3f6c689

Please sign in to comment.