From 72c137afd8af92d4016e1cec796ea4e3684b39d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 29 Jul 2019 14:12:18 +0200 Subject: [PATCH] Environment variables are not passed by default Merges https://github.com/fedora-python/tox-current-env/pull/8 Co-Authored-By: Petr Viktorin --- README.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.rst b/README.rst index 0208068..e332095 100644 --- a/README.rst +++ b/README.rst @@ -166,6 +166,17 @@ but in some cases (such as running ``tox --current-env``, uninstalling the plugin, and running ``tox``), you will get undefined results (such as installing packages from PyPI into your current environment). +Environment variables are not passed by default +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Although the plugin name suggests that current environment is used for tests, +it means the Python environment, not Shell. +If you want the tests to see environment variables of the calling process, +use the ``TOX_TESTENV_PASSENV`` environment variable. +Read `the documentation for passing environment variables to tox +`_. + + Other limitations and known bugs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~