From 9e3a52f57116eb0d8df62051bb4566c8ae3390c6 Mon Sep 17 00:00:00 2001 From: Don Penney Date: Wed, 8 Jul 2020 15:45:35 -0400 Subject: [PATCH] Update tox to set ANSIBLE_LOCAL_TEMP Running tox results in ansible-lint creating a $HOME/.ansible/tmp directory. This update sets the ANSIBLE_LOCAL_TEMP environment variable to direct ansible to create this directory under the .tox work directory, rather than the default. Change-Id: I26055e071bfa2ecbd2b44ab9d1bda3273d8c67ed Closes-Bug: 1886865 Signed-off-by: Don Penney --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index ba2ec44ff..d7eca40f4 100644 --- a/tox.ini +++ b/tox.ini @@ -9,6 +9,7 @@ setenv = VIRTUAL_ENV={envdir} OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 + ANSIBLE_LOCAL_TEMP={toxworkdir}/.ansible/tmp deps = -r{toxinidir}/test-requirements.txt [testenv:linters]