From a910b3f2c19641e9dd197af9b0b70a8996ed543c Mon Sep 17 00:00:00 2001 From: Federico Ressi Date: Tue, 24 Mar 2020 11:59:38 +0100 Subject: [PATCH] Let automate coloring in infrared environment Change-Id: I3b607aa5e0e0bc0215f4ebb81f3bafbff057c9ea --- ansible.cfg | 3 ++- tox.ini | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ansible.cfg b/ansible.cfg index 023dc6cf3..83b72277d 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -2,7 +2,8 @@ host_key_checking = False forks = 500 timeout = 30 -force_color = 1 +force_color = 0 +interpreter_python = auto [ssh_connection] pipelining = True diff --git a/tox.ini b/tox.ini index ab60ea014..d465e13b9 100644 --- a/tox.ini +++ b/tox.ini @@ -186,11 +186,16 @@ deps = -r infrared-requirements.txt passenv = {[testenv:venv]passenv} + ANSIBLE_* IR_* + PYTHON + TERM + setenv = {[testenv:venv]setenv} IR_COMMAND={env:IR_COMMAND:{toxinidir}/tools/ci/ir} IR_HOME={env:IR_HOME:{envdir}/home/infrared} + ANSIBLE_CONFIG={env:ANSIBLE_CONFIG:{toxinidir}/ansible.cfg} commands_pre = -ir plugin remove tobiko ir plugin add {toxinidir}/roles