diff options
Diffstat (limited to 'src/tox/session/commands/provision.py')
-rw-r--r-- | src/tox/session/commands/provision.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tox/session/commands/provision.py b/src/tox/session/commands/provision.py index 3f0ac619..21825fc2 100644 --- a/src/tox/session/commands/provision.py +++ b/src/tox/session/commands/provision.py @@ -1,6 +1,8 @@ """In case the tox environment is not correctly setup provision it and delegate execution""" from __future__ import absolute_import, unicode_literals +import os + from tox.exception import InvocationError @@ -9,7 +11,9 @@ def provision_tox(provision_venv, args): with provision_venv.new_action("provision") as action: provision_args = [str(provision_venv.envconfig.envpython), "-m", "tox"] + args try: - action.popen(provision_args, redirect=False, report_fail=False) + env = os.environ.copy() + env[str("TOX_PROVISION")] = str("1") + action.popen(provision_args, redirect=False, report_fail=False, env=env) return 0 except InvocationError as exception: return exception.exit_code |