diff options
| author | Barry Warsaw | 2014-11-16 16:28:05 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2014-11-16 16:28:05 -0500 |
| commit | a7d5b481c47e561ee3e27bae262e6722420f847a (patch) | |
| tree | 02893c625e4c1d14bda8023cd7e1ffb039b1faad /src/mailman/bin/master.py | |
| parent | 26fe2c0d37d4da51dbda077cdf46a4cd6cec22a5 (diff) | |
| download | mailman-a7d5b481c47e561ee3e27bae262e6722420f847a.tar.gz mailman-a7d5b481c47e561ee3e27bae262e6722420f847a.tar.zst mailman-a7d5b481c47e561ee3e27bae262e6722420f847a.zip | |
Diffstat (limited to 'src/mailman/bin/master.py')
| -rw-r--r-- | src/mailman/bin/master.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mailman/bin/master.py b/src/mailman/bin/master.py index 2b3ec87c4..9eaec21b8 100644 --- a/src/mailman/bin/master.py +++ b/src/mailman/bin/master.py @@ -369,9 +369,16 @@ class Loop: args.extend(['-C', self._config_file]) log = logging.getLogger('mailman.runner') log.debug('starting: %s', args) - os.execl(*args) + # 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 = dict(COVERAGE_PROCESS_START=coverage_env) + args.append(env) + print('ARGS:', args, file=sys.stderr) + os.execle(*args) # We should never get here. - raise RuntimeError('os.execl() failed') + raise RuntimeError('os.execle() failed') def start_runners(self, runner_names=None): """Start all the configured runners. |
