From 8f930852bc197279a3904c59dc315928d269c7bb Mon Sep 17 00:00:00 2001 From: Trevor Bramwell Date: Wed, 11 Jul 2018 09:01:45 -0700 Subject: [PATCH] Make toxworkdir configurable and default to /tmp/v By default tox environment will now be installed under /tmp/v/{envname}, but configurable through the CLI environment by specifying TOX_WORK_DIR. This will allow users dynamically specify where the toxworkdir should live, like so: > TOX_WORK_DIR=$(mktemp -d -t gjjb-XXX) tox -e ... Change-Id: I3daa4dc3538c61fb80a464a1b7e07d7b48fd7a1c Signed-off-by: Trevor Bramwell --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index 8ed03446..e0e9c69a 100644 --- a/tox.ini +++ b/tox.ini @@ -2,6 +2,8 @@ minversion = 1.6 envlist = coala,ensure-documented,jjb,jjb-compare-xml,license skipsdist = true +passenv = TOX_WORK_DIR +toxworkdir = {env:TOX_WORK_DIR:/tmp/v} [testenv:coala] basepython = python3 -- 2.16.6