~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Merge cleanup into reports-conflict-resolved

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