~raj-abhilash1/mailman/py3

« back to all changes in this revision

Viewing changes to src/mailman/bin/master.py

  • Committer: Abhilash Raj
  • Date: 2014-11-26 12:21:48 UTC
  • mfrom: (7260.1.4 3.0)
  • Revision ID: raj.abhilash1@gmail.com-20141126122148-3dr8vp22vq830i93
rebaseĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
369
369
            args.extend(['-C', self._config_file])
370
370
        log = logging.getLogger('mailman.runner')
371
371
        log.debug('starting: %s', args)
372
 
        os.execl(*args)
 
372
        # For the testing framework, if this environment variable is set, pass
 
373
        # it on to the subprocess.
 
374
        coverage_env = os.environ.get('COVERAGE_PROCESS_START')
 
375
        env = dict()
 
376
        if coverage_env is not None:
 
377
            env['COVERAGE_PROCESS_START'] = coverage_env
 
378
        args.append(env)
 
379
        os.execle(*args)
373
380
        # We should never get here.
374
 
        raise RuntimeError('os.execl() failed')
 
381
        raise RuntimeError('os.execle() failed')
375
382
 
376
383
    def start_runners(self, runner_names=None):
377
384
        """Start all the configured runners.