~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

Merge config-lock-remote into config-options

Show diffs side-by-side

added added

removed removed

Lines of Context:
2013
2013
    def start_bzr_subprocess(self, process_args, env_changes=None,
2014
2014
                             skip_if_plan_to_signal=False,
2015
2015
                             working_dir=None,
2016
 
                             allow_plugins=False):
 
2016
                             allow_plugins=False, stderr=subprocess.PIPE):
2017
2017
        """Start bzr in a subprocess for testing.
2018
2018
 
2019
2019
        This starts a new Python interpreter and runs bzr in there.
2031
2031
        :param skip_if_plan_to_signal: raise TestSkipped when true and system
2032
2032
            doesn't support signalling subprocesses.
2033
2033
        :param allow_plugins: If False (default) pass --no-plugins to bzr.
 
2034
        :param stderr: file to use for the subprocess's stderr.  Valid values
 
2035
            are those valid for the stderr argument of `subprocess.Popen`.
 
2036
            Default value is ``subprocess.PIPE``.
2034
2037
 
2035
2038
        :returns: Popen object for the started process.
2036
2039
        """
2071
2074
            command.extend(process_args)
2072
2075
            process = self._popen(command, stdin=subprocess.PIPE,
2073
2076
                                  stdout=subprocess.PIPE,
2074
 
                                  stderr=subprocess.PIPE)
 
2077
                                  stderr=stderr)
2075
2078
        finally:
2076
2079
            restore_environment()
2077
2080
            if cwd is not None:
3805
3808
        'bzrlib.tests.test_http',
3806
3809
        'bzrlib.tests.test_http_response',
3807
3810
        'bzrlib.tests.test_https_ca_bundle',
 
3811
        'bzrlib.tests.test_i18n',
3808
3812
        'bzrlib.tests.test_identitymap',
3809
3813
        'bzrlib.tests.test_ignores',
3810
3814
        'bzrlib.tests.test_index',