~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2010-11-08 10:53:53 UTC
  • mto: (5532.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 5532.
  • Revision ID: v.ladeuil+lp@free.fr-20101108105353-nntejqprr3nislcw
Implements --null-ouput for the test-script command.

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