[virt-tools-list] [virt-bootstrap][PATCH v2 3/6] tox setup: pass HOME environment variable
Radostin Stoyanov
rstoyanov1 at gmail.com
Thu Sep 7 13:09:54 UTC 2017
On 07/09/17 12:45, Cédric Bosdonnat wrote:
> Tests need the HOME environment variable, tell tox to pass it to the
> virtual environment.
>
> Also fix line endings of tox.ini to unix ones.
> ---
> tox.ini | 49 +++++++++++++++++++++++++------------------------
> 1 file changed, 25 insertions(+), 24 deletions(-)
>
> diff --git a/tox.ini b/tox.ini
> index 67a7f2d..d7f652a 100644
> --- a/tox.ini
> +++ b/tox.ini
> @@ -1,24 +1,25 @@
> -# 'Tox' is a tool for automating build/test cycles against
> -# multiple Python versions:
> -# http://pypi.python.org/pypi/tox
> -# http://tox.readthedocs.io/en/latest/
> -
> -# Running the command 'tox' while in the root of the virt-bootstrap
> -# source directory will:
> -# - Create a source distribution (setup.py sdist)
> -# - Then for every supported version of Python:
> -# - Create a virtualenv in .tox/py$VERSION and install dependencies.
> -# (These virtualenvs are cached across runs unless you use
> -# --recreate.)
> -# - Use pip to install the virt-bootstrap sdist into the virtualenv
> -# - Run the virt-bootstrap tests
> -
> -# To run against a specific subset of Python versions, use:
> -# tox -e py27
> -
> -[tox]
> -envlist = py27,py3
> -
> -[testenv]
> -commands={envpython} {toxinidir}/setup.py test
> -deps=-rrequirements.txt
> +# 'Tox' is a tool for automating build/test cycles against
> +# multiple Python versions:
> +# http://pypi.python.org/pypi/tox
> +# http://tox.readthedocs.io/en/latest/
> +
> +# Running the command 'tox' while in the root of the virt-bootstrap
> +# source directory will:
> +# - Create a source distribution (setup.py sdist)
> +# - Then for every supported version of Python:
> +# - Create a virtualenv in .tox/py$VERSION and install dependencies.
> +# (These virtualenvs are cached across runs unless you use
> +# --recreate.)
> +# - Use pip to install the virt-bootstrap sdist into the virtualenv
> +# - Run the virt-bootstrap tests
> +
> +# To run against a specific subset of Python versions, use:
> +# tox -e py27
> +
> +[tox]
> +envlist = py27,py3
> +
> +[testenv]
> +commands={envpython} {toxinidir}/setup.py test
> +deps=-rrequirements.txt
> +passenv=HOME
ACK
More information about the virt-tools-list
mailing list