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
This commit is contained in:
James E. Blair 2016-01-07 17:29:18 -08:00
parent ef7ccd5958
commit 9d6ee5a896

View File

@ -37,6 +37,9 @@ def reusable_node(item, job, params):
def set_node_options(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 up log url parameter for all jobs
set_log_url(item, job, params) set_log_url(item, job, params)
# Default to single use node. Potentially overriden below. # Default to single use node. Potentially overriden below.