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 <don.penney@windriver.com>
This commit is contained in:
Don Penney 2020-07-08 15:45:35 -04:00
parent 59512fe7f9
commit 9e3a52f571
1 changed files with 1 additions and 0 deletions

View File

@ -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]