~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_cat.py

  • Committer: Alexander Belchenko
  • Date: 2006-12-13 08:15:54 UTC
  • mto: This revision was merged to the branch mainline in revision 2204.
  • Revision ID: bialix@ukr.net-20061213081554-hglev5j0rzv0xhon
Provide tests to illustrate bug #55276 on win32.

Change blackbox tests for cat and bundle commands
to use run_bzr_subprocess and therefore grab
real output (windows mangle line-endings LF -> CRLF).
Also provide new blackbox tests for diff command.

To check that tests failed you need to run on win32:

python bzr selftest blackbox.test_cat
python bzr selftest blackbox.test_bundle
python bzr selftest blackbox.test_diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    def test_cat(self):
29
29
 
30
30
        def bzr(*args, **kwargs):
31
 
            return self.run_bzr(*args, **kwargs)[0]
 
31
            return self.run_bzr_subprocess(*args, **kwargs)[0]
32
32
 
33
33
        os.mkdir('branch')
34
34
        os.chdir('branch')