/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/blackbox/test_script.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-11-08 11:35:49 UTC
  • mfrom: (5531.1.3 662509-ignore-empty)
  • Revision ID: pqm@pqm.ubuntu.com-20101108113549-e4mhhq2fe1i0etbf
(vila) Add an option to accept any output from commands in shell-like tests.
 (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
        self.assertEquals('OK', out_lines[-1])
51
51
        self.assertEquals('', err)
52
52
 
 
53
    def test_null_output(self):
 
54
        self.build_tree_contents([('script', '''
 
55
$ echo hello world
 
56
''')])
 
57
        out, err = self.run_bzr(['test-script', 'script', '--null-output'])
 
58
        out_lines = out.splitlines()
 
59
        self.assertStartsWith(out_lines[-3], 'Ran 1 test in ')
 
60
        self.assertEquals('OK', out_lines[-1])
 
61
        self.assertEquals('', err)
 
62
 
53
63
    def test_failing_script(self):
54
64
        self.build_tree_contents([('script', '''
55
65
$ echo hello foo