/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Aaron Bentley
  • Date: 2006-06-12 01:05:02 UTC
  • mto: This revision was merged to the branch mainline in revision 1765.
  • Revision ID: aaron.bentley@utoronto.ca-20060612010502-c6b1884209866f3f
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)