From 9d6ee5a89607e91b1cf4f9110f312c2927748af3 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 7 Jan 2016 17:29:18 -0800 Subject: [PATCH] Have Zuul force tox to obey Zuul TOX_TESTENV_PASSENV is a variable that lists env variables that tox should allow through to test environments. Make sure that the ZUUL_ variables are always on the list so that zuul-cloner may always be used inside of a tox environment. Change-Id: Iacba1611e5c50fbccd6ae700b3456028b142fc5c --- zuul/openstack_functions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zuul/openstack_functions.py b/zuul/openstack_functions.py index ce8cb4f4a8..a68dc18780 100644 --- a/zuul/openstack_functions.py +++ b/zuul/openstack_functions.py @@ -37,6 +37,9 @@ def reusable_node(item, job, params): def set_node_options(item, job, params): + # Force tox to pass through ZUUL_ variables + zuul_params = [x for x in params.keys() if x.startswith('ZUUL_')] + params['TOX_TESTENV_PASSENV'] = ','.join(zuul_params) # Set up log url parameter for all jobs set_log_url(item, job, params) # Default to single use node. Potentially overriden below.