1
0
mirror of https://github.com/openshift/openshift-ansible.git synced 2026-02-05 06:46:04 +01:00

Update tox test environment vars

Adds Ansible environment vars required to change Ansible to use /tmp
instead of user home.
This commit is contained in:
Russell Teague
2019-05-23 13:28:54 -04:00
parent 3f45cecc2e
commit f95b9a2b68
3 changed files with 7 additions and 7 deletions

View File

@@ -392,10 +392,8 @@ class OpenShiftAnsibleSyntaxCheck(Command):
# --syntax-check each entry point playbook
try:
# Create a host group list to avoid WARNING on unmatched host patterns
tox_ansible_inv = os.environ['TOX_ANSIBLE_INV_PATH']
subprocess.check_output(
['ansible-playbook', '-i', tox_ansible_inv,
'--syntax-check', playbook, '-e', '@{}_extras'.format(tox_ansible_inv)]
['ansible-playbook', '--syntax-check', playbook]
)
except subprocess.CalledProcessError as cpe:
print('{}Execution failed: {}{}'.format(

View File

@@ -1,3 +0,0 @@
---
hostvars:
localhost: {}

View File

@@ -8,7 +8,12 @@ skip_missing_interpreters=True
[testenv]
skip_install=True
setenv = TOX_ANSIBLE_INV_PATH = {toxinidir}/test/tox-inventory.txt
setenv =
ANSIBLE_INVENTORY = {toxinidir}/test/tox-inventory.txt
ANSIBLE_LOG_PATH=/tmp/tox/ansible/ansible.log
ANSIBLE_LOCAL_TEMP=/tmp/tox/ansible
ANSIBLE_CACHE_PLUGIN_CONNECTION=/tmp/tox/ansible/facts
deps =
-rrequirements.txt
-rtest-requirements.txt