~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-12 01:12:14 UTC
  • mfrom: (1752.1.7 configobj)
  • Revision ID: pqm@pqm.ubuntu.com-20060612011214-3f50082086eb3ef6
Stop using shlex in run_bzr_subprocess

Show diffs side-by-side

added added

removed removed

Lines of Context:
729
729
        this isolation: e.g. they are testing startup time, or signal
730
730
        handling, or early startup code, etc.  Subprocess code can't be 
731
731
        profiled or debugged so easily.
 
732
 
 
733
        :param retcode: The status code that is expected.  Defaults to 0.  If
 
734
        None is supplied, the status code is not checked.
732
735
        """
733
736
        bzr_path = os.path.dirname(os.path.dirname(bzrlib.__file__))+'/bzr'
734
 
        if len(args) == 1:
735
 
            args = shlex.split(args[0])
736
737
        args = list(args)
737
738
        process = Popen([sys.executable, bzr_path]+args, stdout=PIPE, 
738
739
                         stderr=PIPE)