From 34586187d3b126f2efd6cbbf2cc86eaae285d838 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Wed, 22 Apr 2015 15:35:40 +0200 Subject: Propagate the MAILMAN_EXTRA_TESTING_CFG env var to subprocesses --- src/mailman/bin/master.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/mailman/bin/master.py b/src/mailman/bin/master.py index 5ffe59647..968260595 100644 --- a/src/mailman/bin/master.py +++ b/src/mailman/bin/master.py @@ -373,11 +373,11 @@ class Loop: var_dir = os.environ.get('MAILMAN_VAR_DIR') if var_dir is not None: env['MAILMAN_VAR_DIR'] = var_dir - # For the testing framework, if this environment variable is set, pass - # it on to the subprocess. - coverage_env = os.environ.get('COVERAGE_PROCESS_START') - if coverage_env is not None: - env['COVERAGE_PROCESS_START'] = coverage_env + # For the testing framework, if these environment variables are set, + # pass them on to the subprocess. + for envvar in ('COVERAGE_PROCESS_START', 'MAILMAN_EXTRA_TESTING_CFG'): + if envvar in os.environ: + env[envvar] = os.environ[envvar] args.append(env) os.execle(*args) # We should never get here. -- cgit v1.2.3-70-g09d2